eai init
Scaffold a new vertical application from the Enterprise AI template.
Syntax
eai init [name] [options]
Description
The eai init command creates a new vertical application project by cloning and configuring a template repository. It sets up the project structure, installs dependencies, and prepares the local development environment.
If no project name is provided, the CLI will prompt you interactively.
Arguments
| Argument | Description | Required |
|---|---|---|
name | Project name in kebab-case (e.g., my-vertical) | No (prompted if omitted) |
Options
| Flag | Description | Default |
|---|---|---|
--from <repo> | Template repository URL or local path | https://github.com/eai-tools/Vertical-Template.git |
--skip-prompts | Use default values without interactive prompts | false |
Examples
Interactive scaffold
Run without arguments to be guided through the setup process:
eai init
Quick scaffold with a name
Provide the project name directly:
eai init my-vertical
Use a custom template
Specify an alternative template repository:
eai init my-vertical --from https://github.com/my-org/my-template.git
Non-interactive mode (CI/CD)
Skip all prompts and use default values, useful in automated pipelines:
eai init my-vertical --skip-prompts
What It Does
When you run eai init, the CLI:
- Clones the template repository into a new directory named after your project.
- Removes the
.gitdirectory and initializes a fresh Git repository. - Updates
package.jsonwith your project name. - Installs npm dependencies.
- Creates an initial
.env.localfile for local configuration.
Next Steps
After scaffolding your project:
- Authenticate with the platform:
eai login - Pull environment configuration:
eai env pull - Validate your data model:
eai types validate - Start developing:
eai dev
Related Commands
eai dev-- Start the local development servereai env pull-- Sync cloud environment configurationeai types validate-- Validate Object Type definitions