EAI CLI
The Enterprise AI CLI (eai) is a command-line tool for scaffolding, developing, and managing vertical applications on the Enterprise AI platform. It provides a unified interface for everything from project initialization to deployment.
Quick Reference
| Command | Description |
|---|---|
eai init | Scaffold a new vertical application |
eai login | Authenticate with Entra CIAM |
eai dev | Start local development server |
eai types | Manage Object Type definitions |
eai tenant | Manage tenants on the platform |
eai resources | CRUD operations on platform resources |
eai chat | Chat with AI workflows |
eai docs | Document upload, classification, and indexing |
eai deploy | Deployment management |
eai env | Manage environment variables |
eai verify | Run platform connectivity checks |
eai doctor | Diagnose common issues and suggest fixes |
eai whoami | Show auth status and tenant info |
Getting Started Workflow
A typical workflow for creating a new vertical:
# 1. Scaffold a new project
eai init my-vertical
# 2. Authenticate with the platform
eai login
# 3. Sync cloud environment config
eai env pull
# 4. Define and validate your data model
eai types validate
# 5. Seed Object Types to the platform
eai types seed
# 6. Start developing
eai dev
Common Workflows
Define, Validate, and Seed
# Edit src/eai.config/object-types.ts, then:
eai types validate && eai types seed
Check Platform Health
eai verify
Debug Issues
eai doctor --fix
Deploy to Azure
eai deploy setup --repo eai-tools/my-vertical
eai deploy trigger
eai deploy status
For more detailed workflow guides, see Workflows.
Global Options
These flags are available on every eai command:
| Flag | Description |
|---|---|
-V, --version | Display CLI version |
-h, --help | Display help for any command |
Use eai help <command> to see detailed help for any command.
Next Steps
- Install the CLI to get started
- Authenticate with the platform
- Browse the Command Reference for detailed usage
- Follow common Workflows for end-to-end guides