Skip to main content

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

ArgumentDescriptionRequired
nameProject name in kebab-case (e.g., my-vertical)No (prompted if omitted)

Options

FlagDescriptionDefault
--from <repo>Template repository URL or local pathhttps://github.com/eai-tools/Vertical-Template.git
--skip-promptsUse default values without interactive promptsfalse

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:

  1. Clones the template repository into a new directory named after your project.
  2. Removes the .git directory and initializes a fresh Git repository.
  3. Updates package.json with your project name.
  4. Installs npm dependencies.
  5. Creates an initial .env.local file for local configuration.

Next Steps

After scaffolding your project:

  1. Authenticate with the platform: eai login
  2. Pull environment configuration: eai env pull
  3. Validate your data model: eai types validate
  4. Start developing: eai dev