SMILI Developers

Command Line Interface

A lightweight command-line client for the AI Portal MCP generation tools. Compatibility with Claude Code, Cursor, and Codex has not been verified.

Installation

npm install -g ./lib/ai-portal-cli

Package name will be configured before publishing. From the repository root, install with the local path above or run node lib/ai-portal-cli/src/cli.js.

Requires Node.js 18 or later.

Authentication

Login opens a secure browser window to authenticate your CLI.

Not configured

Login setup is disabled until the portal endpoint is configured.

Credentials use the OS keychain when available, with a protected 0600-permission file fallback.

Check Status

ai-portal auth status

Supported Models

These are the models currently mapped and supported by your AI Portal CLI.

Sign in to view models available on your account.

Sign In

Commands

ai-portal models list

List all available image and video models you have access to.

ai-portal models list

ai-portal image generate

First run ai-portal models list and choose an image model ID. Submission returns a generation record immediately.

ai-portal image generate --model IMAGE_MODEL_ID --prompt "A futuristic Chennai skyline" --aspect-ratio "16:9"
  • --prompt (required): Description of the image.
  • --model (required): ID chosen from the signed-in model inventory.
  • --aspect-ratio: A ratio advertised by that model.
  • --reference-image: An owned gallery reference; repeat for multiple references.
  • --idempotency-key: Optional explicit retry key; the CLI generates one when omitted.

ai-portal video generate

Choose a video model from models list, then submit a generation.

ai-portal video generate --model VIDEO_MODEL_ID --prompt "A cinematic robot walking through Tokyo" --duration 10

Options: required --model and --prompt; optional --duration, --aspect-ratio, repeated --reference-image, --idempotency-key, and --json. Use only capabilities advertised by the selected model.

ai-portal auth logout

Logout remotely and clear local credentials.

ai-portal auth logout

ai-portal generation get <id>

Check the status of a generation job.

ai-portal generation get image:GENERATION_UUID