Skip to content

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:

  1. Launch your terminal app and navigate to your desired project directory.
  2. Execute app init command.
  3. Follow the prompts to enter your project name and initialization options.
  4. Wait for the project structure and files to be created, for details about the app structure and configuration files, see App structure
  5. 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-id

Use environment variable

bash
export GENSTORE_FLAG_CLIENT_ID=your-client-id
genstore app init