CLI Commands
Complete command reference for the SJinn CLI.
Command Overview
| Command | Description |
|---|---|
sjinn auth login | Sign in to SJinn. |
sjinn auth whoami | Show the current authenticated user. |
sjinn auth logout | Sign out and clear stored credentials. |
sjinn image generate | Generate an image from a prompt and optional reference images. |
sjinn video generate | Generate a video from a prompt and optional input media. |
sjinn status <task_id> | Query task status. |
Run any command with --help for the latest options:
sjinn --help
sjinn auth --help
sjinn image generate --help
sjinn video generate --help
sjinn auth
login
Sign in to your SJinn account. Opens a browser-based authentication flow.
sjinn auth login
whoami
Display the currently authenticated user.
sjinn auth whoami
logout
Sign out and clear stored credentials.
sjinn auth logout
sjinn image generate
Generate an image from a text prompt with optional reference images.
sjinn image generate [options]
Options
| Option | Description |
|---|---|
--prompt | Image description. |
--model | Image model. Defaults to gpt-image-2. |
--image | Comma-separated local paths or URLs for reference images. |
--aspect | Aspect ratio, such as 1:1, 16:9, or 9:16. |
--resolution | Resolution, such as 1K, 2K, or 4K, where supported. |
--async | Return the task ID without waiting. |
--download | Download the result to a local file. |
--json | Print machine-readable JSON. |
sjinn video generate
Generate a video from a text prompt with optional input media.
sjinn video generate [options]
Options
| Option | Description |
|---|---|
--prompt | Video description. |
--model | Video model. Defaults to veo3. |
--image | Input image for image-to-video. |
--duration | Video duration in seconds, where supported. |
--aspect | Aspect ratio, such as 16:9, 9:16, or 1:1. |
--mode | Quality mode: std, pro, fast, or standard, where supported. |
--resolution | Output resolution: 480p, 720p, or 1080p, where supported. |
--end-image | End frame image, where supported. |
--media-urls | Comma-separated reference media URLs, where supported. |
--multi-shot | Multi-shot mode, where supported. |
--async | Return the task ID without waiting. |
--download | Download the result to a local file. |
--json | Print machine-readable JSON. |
sjinn status
Query the status of an async task.
sjinn status <task_id>
Returns the current task state including progress, result URLs, or error details.
