app init
The app init command initializes a new app project based on the Genstore standard project template.
Syntax
bash
genstore app init [options]Use cases
- Rapid project setup: The command automates project creation by generating standardized scaffolding, implementing Genstore's structure, and accelerating development setup.
- Multi-App development: The system supports multiple isolated projects with separate environments and independent configuration management per instance.
Implementation guide
To create a new app project:
- Launch your terminal app and navigate to your desired project directory.
- Execute
app initcommand. - Follow the prompts to enter your project name and initialization options.
- Wait for the project structure and files to be created, for details about the app structure and configuration files, see App structure
- Navigate to newly created project directory to begin development.
Configuration options
The following configuration options are available:
bash
--client-id <value>- Environment variable:
GENSTORE_FLAG_CLIENT_ID - Use: Specify an existing Genstore app's client ID for the new project.
- Effect: Using this option bypasses the interactive app selection prompt.
Examples
Use the client ID option
bash
genstore app init --client-id your-client-idUse environment variable
bash
export GENSTORE_FLAG_CLIENT_ID=your-client-id
genstore app init