Skip to main content

EAI CLI

eai is the supported command-line interface for building and operating apps on the EAI platform. It wraps authentication, workspace context, Object Types, ResourceAPI data, document processing, chat workflows, deployment, diagnostics, and gofer asset refresh.

Release Snapshot#

FieldValue
Version3.18.4
Released2026-09-29
Last Material ChangeUse workspace terminology in customer-facing guidance
Source Commit9c7efe3e4252abf86e0dd5c33dcc4eb8e4f96bb7

Install#

For a new desktop computer, use EAI Setup first. It is the standard guided path for Windows, macOS, and Ubuntu/Debian users. It prepares prerequisites, installs the CLI, opens browser sign-in, creates the project, and installs its dependencies.

Use the commands below for CI, managed developer environments, or manual setup.

Recommended install:

npm install -g eai-cli

Canonical package install:

npm install -g @enterpriseai/cli

Static registry fallback:

npm install -g @enterpriseai/cli --@enterpriseai:registry=https://eai-support.github.io/eai/registry/

Persistent static fallback setup:

npm config set @enterpriseai:registry https://eai-support.github.io/eai/registry/ --location=user
npm install -g @enterpriseai/cli

Common Workflow#

eai login
eai workspace list --format json
eai workspace select <workspace-slug>
eai whoami

eai types validate
eai types seed --tenant-key <scope-key> --tenant-id <workspace-id> --format json
eai types diff --tenant-key <scope-key> --tenant-id <workspace-id>
eai resources schema --tenant-id <workspace-id> --format json

eai dev

Object Type Identifiers#

Do not move every Object Type field to kebab-case. A definition keeps both a PascalCase source/model name, such as BoardAppUser, and an explicit exact transport/storage slug, such as board-app-user.

Generated and persisted linkTypes[].targetObjectType, runtime target_type, path parameters, and other governed v4 fields contain slugs. The CLI accepts a same-manifest PascalCase relationship target only as authoring shorthand and resolves it through that target's declared slug before diff or seed. An unresolved model name is an error; the CLI does not guess.

For existing Object Types, the exact stored slug is authoritative even when today's derivation from the name would differ. Do not normalize or rename it. App code should use useResources or client.resources so the SDK owns route construction.

Command Groups#

CommandPurpose
eai initScaffold an app from the EAI App Template.
eai startDetect or open a supported AI workspace for the current EAI app.
eai login, eai logout, eai whoamiManage local authentication and inspect active context.
eai workspaceList, select, create, inspect, and administer workspace context. eai tenant remains available as a compatibility alias.
eai typesValidate, seed, diff, and pull Object Type definitions.
eai resourcesList, get, create, update, delete, query, aggregate, search, and manage ResourceAPI data.
eai docsUpload, classify, and index documents for platform processing and RAG.
eai chatSend or stream chat requests through configured AI workflows.
eai publicapiCall authorized PublicAPI V4 routes when a named command does not exist yet.
eai runtimeValidate the host-neutral eai.runtime.json app runtime contract.
eai deployTranslate provider env/secrets and black-box doctor deployed EAI app runtimes.
eai goferInstall and refresh repo-local agent workflow assets.
eai templateCheck template drift or create a read-only, UI-preserving AI adoption plan.
eai updateUpdate the CLI, force-refresh backed-up Gofer assets, and run a read-only template check.
eai verify, eai doctorRun connectivity, contract, update, and troubleshooting checks.

Output Modes#

Use machine-readable output for automation:

eai workspace list --format json
eai resources schema --tenant-id <workspace-id> --format json
eai whoami --simple
eai doctor --no-color

Named Commands Before Raw Routes#

Prefer product-shaped commands before eai publicapi:

NeedPreferred CLI
Scaffold appeai init <name> or eai init <name> --current-dir
Start AI workspaceeai start --check, then eai start
Select workspaceeai workspace list, eai workspace select <slug>
Publish Object Typeseai types validate, eai types seed, eai types diff
Inspect schemaseai resources schema --tenant-id <workspace-id>
Work with resourceseai resources list/get/create/update/delete/query
Search resourceseai resources search "<query>" --mode hybrid
Work with documentseai docs upload, eai docs classify, eai docs index
Attach resource fileseai resources file upload/get/delete
Use chat workflowseai chat send, eai chat stream
Advanced routeeai publicapi <method> /v4/...