eai dev
Start the local development server with platform connectivity.
Syntax
eai dev [options]
Description
The eai dev command starts a local Next.js development server configured to communicate with the Enterprise AI platform services. By default, it uses Turbopack for faster builds and runs connectivity checks before starting the server.
Options
| Flag | Description | Default |
|---|---|---|
--port <port> | Port number for the local server | 3000 |
--turbo | Use Turbopack for faster development builds | true |
--no-turbo | Disable Turbopack and use the standard webpack bundler | -- |
--skip-checks | Skip platform connectivity checks on startup | false |
Examples
Start with defaults
Start the development server on port 3000 with Turbopack enabled:
eai dev
Custom port
Run the server on a different port:
eai dev --port 3001
Skip platform health checks
If you are working offline or do not need platform connectivity:
eai dev --skip-checks
Disable Turbopack
Fall back to the standard webpack bundler:
eai dev --no-turbo
Prerequisites
Before running eai dev, ensure:
- You have installed the CLI.
- You have run
eai loginto authenticate. - You have run
eai env pullto sync your local.env.localconfiguration.
What It Does
When you run eai dev, the CLI:
- Connectivity checks (unless
--skip-checksis set): Verifies that the platform services (PublicAPI, Configurator, ResourceAPI, AICore) are reachable and your authentication is valid. - Starts the development server: Launches the Next.js dev server with Turbopack (or webpack if
--no-turbois specified). - Hot reloading: Changes to your code are reflected immediately in the browser.
Related Commands
eai verify-- Run connectivity checks independentlyeai doctor-- Diagnose common development issueseai env pull-- Sync cloud configuration before starting