EVA CLI Command Reference
Authentication: login / logout / whoami / auth status
eva login [--port <port>] [--no-open]— Sign in through a browser and store the JWT in the system keychain.--port <port>: Use a fixed loopback port. By default, the OS selects an available port.--no-open: Print the authorization URL without opening a browser.- Signing in as a different user resets the local current tenant and project, so the CLI does not keep pointing to the previous user's resources.
eva logout— Sign out and clear the stored token.eva whoami— Show the current identity (evaUserId/platformRole/profile).eva auth status— Show login state and token expiration time. The states arenot signed in,expired, andsigned in.
Tenants: tenant init | list | use | current
init and list call the backend. use and current only access local configuration.
eva tenant init— Initialize or retrieve your default tenant. This is idempotent; identity comes from the JWT.eva tenant list— List your tenants, marking the current tenant with*.eva tenant use <tenantId>— Set the current tenant locally.eva tenant current— Show the locally selected tenant.
Projects: project list | create | use | current | archive
list, create, and archive call the backend, with tenantId in the URL path. use and current only access local configuration.
eva project list [--tenant <tenantId>]— List projects in the specified or current tenant. Mark the current project with*and showdefaultand status labels.eva project create <name> [--tenant <tenantId>] [--description <text>]— Create a project in the tenant.eva project use <projectId>— Set the current project locally.eva project current— Show the locally selected project.eva project archive <projectId> [-y]— Archive a project using a soft delete; the backend does not hard-delete it. Confirmation is required unless-y/--yesis supplied.
API Keys: key create | list | rm | show | save
These commands operate within a project. They use the current project unless overridden by --project <projectId>.
eva key create <name> [--project <id>] [--description <text>] [--ttl <90d|180d|365d|never>] [--no-show-key]— Issue a new key. By default, its complete plaintext value is displayed once.- Without
--ttl, an interactive terminal (TTY) prompts for an expiration period. Non-interactive mode (--jsonor non-TTY) defaults tonever. --no-show-key: Do not print plaintext.raw_full_keyis omitted from terminal output and set tonullin JSON output. Use this for CI or when immediately saving the key witheva key save, to keep plaintext out of terminal output and logs. The plaintext cannot be retrieved again through this creation result; user-type keys can be viewed later witheva key show <id>.
- Without
eva key list [--project <id>] [--status <ACTIVE|SUSPENDED|REVOKED>] [--page <n>] [--size <n>]— List masked keys, including anEXPIRES_ATcolumn.--pageis zero-based.eva key rm <credentialId> [--project <id>] [-y]— Revoke a key. Revocation deletes the key and cannot be undone.-y/--yesskips confirmation.eva key show <credentialId> [--project <id>]— Show a key's complete plaintext value. Available only for user-type keys.eva key save [--key-name <name>] [--project <id>] [--dir <path>]— Save a user-type key's plaintext value to the project's.envfile.- Resolve the destination filename and variable name from the nearest
.eva/project.jsonbinding, falling back to.envandEVA_GATEWAY_API_KEY. - By default, randomly choose an ACTIVE user-type key in the current project. Use
--key-nameto select one by name. --dir: Directory used to resolve the binding and write.env; defaults to the current directory.- Plaintext is written to the file, never printed. JSON output reports the file path and variable name.
- Resolve the destination filename and variable name from the nearest
Project Scaffolding: init
eva init [name] [--template <id>] [--dir <path>] [--from <path|git-url>] [--project <id>] [--new-project] [--tenant <id>] [-y]- By default, only initialize the project: create or bind a project, select it as current, and write
.eva/project.json. This does not issue a key, write.env, or print plaintext. --template <id>: Also download quickstart template files, without writing.env.--dir <path>: Base directory. Withname, create<dir>/<name>; with only--dir, use that directory itself. Without--dir,nameis relative to the current directory.--from <path|git-url>: Override the template source when using--template.--project <id>: Bind an existing project instead of reusing or creating one automatically.--new-project: Force creation of a new project rather than reusing one.--tenant <id>: Select a tenant; otherwise use the current tenant or initialize one automatically.-y/--yes: Skip overwrite confirmation when the target already contains files, when using--template.
- By default, only initialize the project: create or bind a project, select it as current, and write
Templates: template list | pull
Download templates independently, without signing in or initializing a project.
eva template list— List available quickstart templates.eva template pull <id> [--dir <path>] [--from <path|git-url>]— Clone a template into an empty directory, ignoring.envand.evawhen checking whether it is empty.--dir: Target directory; defaults to the current directory.--from: Override the source with a local path or Git URL.
Agent Configuration: agent list | create | show | update | publish | rm
Agent configuration operations are scoped to a project. Use the current project or override it with --project <id>.
eva agent list [--project <id>] [--page <n>] [--size <n>]— List agents withNAME,UUID,STATUS, andUPDATED_AT.--pageis one-based.eva agent create [name] [--project <id>] [--tenant <id>] [--description <text>] [--config <json>] [--config-file <path>] [--no-wizard] [-y]— Create an agent.- Interactive terminals use a configuration wizard by default: ASR (model and sample rate), TTS (model and voice), LLM (model), emotion recognition (default labels and custom extensions), system prompt, greeting, device commands and parameters, then up to 20 custom MCP tools. Review the summary and submit everything together.
--config <json>and--config-file <path>provide the full configuration and skip the wizard. They are mutually exclusive.- Non-interactive mode (
--json, non-TTY, or--no-wizard) requires--configor--config-file; otherwise it reportsconfig_required. - Before submission, ASR/TTS/LLM model availability is checked against the model marketplace on a best-effort basis. A failed marketplace query does not block submission.
-yskips final confirmation.
eva agent show <uuid>— Show agent details, including the full configuration JSON.eva agent update <uuid> [--name <name>] [--description <text>] [--config <json>] [--config-file <path>]— Update an agent. Name and description can be updated independently. Configuration is replaced in full, without field-level merging. Retrieve the complete configuration witheva agent show <uuid>, edit it, then submit the full object. A partial configuration clears omitted groups.eva agent publish <uuid> [-y]— Publish the current draft as a new immutable version and direct live traffic to it. This operation is idempotent.-yskips confirmation.eva agent rm <uuid> [-y]— Soft-delete an agent.
Main configuration groups: asr {model, sample_rate}, tts {model, voice_id}, llm {model}, emotion {enabled, labels}, system_prompt, greeting_message, commands [{command_id, description, params}], and tools [{uuid, name}] (references to attached tools, up to 20).
Custom MCP Tools: tool list | create | show | rm
Custom MCP tools belong to a tenant. Tools are shared within the tenant and can be attached to multiple agents, so they have a separate top-level command.
eva tool list [--tenant <id>] [--page <n>] [--size <n>] [--type mcp]— List custom tools that have not been soft-deleted.--pageis one-based.--typefilters by type; currently onlymcpis supported.eva tool create [name] [--tenant <id>] [--type mcp] [--description <text>] [--config <json>] [--config-file <path>] [--no-wizard] [-y]— Create a custom MCP tool.- Tool names allow only letters, numbers, underscores, and hyphens, such as
amap-mcp. - Configuration shape:
{"type":"sse"|"streamable_http","url":"...","requestHeaders":{...}}. The interactive wizard collects the transport type, server URL, and optional request headers. - Non-interactive mode requires
--configor--config-file. - Before saving, the server checks connectivity to the MCP server. On failure, it reports
invalid_mcp_configurationand saves no records.
- Tool names allow only letters, numbers, underscores, and hyphens, such as
eva tool show <uuid>— Show tool details, including configuration.eva tool rm <uuid> [-f|--force] [-y]— Soft-delete a tool. Deletion is blocked withtool_in_usewhen the tool is attached to a published agent.--forcealso removes those attachments.
Global Options
--json: Output JSON for scripts and CI. Data goes to stdout and errors to stderr, in the shape{ "error": { "code": "...", "message": "...", "hint": "..." } }.--verbose: Write debug information to stderr, without printing tokens or plaintext keys.--no-color: Disable colored output.