CLI Overview
The AImetier CLI handles instance setup, diagnostics, and control-plane operations.
pnpm aimetier --helpGlobal Options
Section titled “Global Options”All commands support:
| Flag | Description |
|---|---|
--data-dir <path> |
Local AImetier data root (isolates from ~/.aimetier) |
--api-base <url> |
API base URL |
--api-key <token> |
API authentication token |
--context <path> |
Context file path |
--profile <name> |
Context profile name |
--json |
Output as JSON |
Company-scoped commands also accept --company-id <id>.
For clean local instances, pass --data-dir on the command you run:
pnpm aimetier run --data-dir ./tmp/aimetier-devContext Profiles
Section titled “Context Profiles”Store defaults to avoid repeating flags:
# Set defaultspnpm aimetier context set --api-base http://localhost:3100 --company-id <id>
# View current contextpnpm aimetier context show
# List profilespnpm aimetier context list
# Switch profilepnpm aimetier context use defaultTo avoid storing secrets in context, use an env var:
pnpm aimetier context set --api-key-env-var-name AIMETIER_API_KEYexport AIMETIER_API_KEY=...Context is stored at ~/.aimetier/context.json.
Command Categories
Section titled “Command Categories”The CLI has two categories:
- Setup commands — instance bootstrap, diagnostics, configuration
- Control-plane commands — issues, agents, approvals, activity