Skip to main content

Command Line Interface

The Solti CLI provides complete terminal access for developers and automated CI/CD pipelines.

Installation​

macOS / Linux (Homebrew — no Node.js required):

brew install trysolti/tap/solti

Or via Node.js (>= 20) with npm / pnpm:

npm install -g @solti/cli
# or: pnpm add -g @solti/cli

Or via pip / uv (requires Node.js >= 20 on your PATH):

pip install solti-cli
# or: uv add solti-cli

Profile Configuration​

Authentication tokens and active workspaces are stored locally in ~/.solti/:

# Add a profile
solti profile set prod \
--project-id proj-38749-db30 \
--api-key <your-api-key>

# Activate profile for current shell session
eval $(solti profile use prod)

# List configured profiles
solti profile list

# Show profile details (API key is redacted)
solti profile show prod

# Delete a profile
solti profile delete prod

Submitting Workloads (solti job run)​

The CLI supports two flexible submission modes.

Mode A: Declarative YAML File​

solti job run -f workload.yaml

Mode B: Direct Command Line Arguments​

Submit workloads without creating a YAML file. All YAML properties are mirrored as CLI flags:

solti job run \
--image astral/uv:latest \
--env PYTHONUNBUFFERED=1 \
--volume bucket=my-ml-datasets,prefix=some/prefix,mountPath=/mnt/r2 \
--resources cpu=4,memory=16Gi,storage=100Gi \
--cloud aws,gcp \
--region americas \
--label environment=production \
--tag training \
uv run --with numpy --with pandas python -c "print('Running analytics job!')"

Trailing arguments: if --command and --args are omitted, any trailing arguments are automatically mapped as the container's command and args.

Scheduled start: --run-after <datetime> accepts an RFC 3339 datetime with timezone required (naive datetimes fail with 422) — the job stays queued (no VM, no cost) until that instant, then provisions normally. Past/now = start immediately; the value is immutable after submission.

Volumes: --volume takes a structured spec: bucket=<bucket>,mountPath=<path>[,prefix=<prefix>][,connection=<name>] (repeatable). Use --volume-name <name> to set the volume's map key explicitly (it defaults to the bucket name). Credentials are resolved automatically from the project's matching cloud connection. See Storage Volumes.

Default resources: if --resources is omitted, Solti automatically assigns 1 CPU and 4Gi memory (cpu=1,memory=4Gi); the VM's boot disk uses each provider's image default (AWS 8 GiB, GCP 10 GB, Azure 30 GB) unless storage is set.

Monitoring & Cancelling Jobs​

# List recent workloads with status
solti job list

# View detailed status, VM lifecycle, and costs
solti job status <job-id-or-name>

# Stream status in place until the job reaches a terminal state (useful in CI)
solti job status <job-id-or-name> --watch

# Cancel an active or queued workload
solti job cancel <job-id-or-name>

Job Logs & Metrics​

Serverless jobs stream their container logs and CPU/memory samples to the platform, and the CLI can read both surfaces directly (the same data the dashboard's job drawer renders):

# Print a job's logs — fluent-bit/docker-json envelopes are normalized to
# plain 'HH:MM:SS message' lines
solti job logs <job-id-or-name>

# Tail logs live: polls every 3 s until the job reaches a terminal state
# (Ctrl-C stops the tail)
solti job logs <job-id-or-name> --follow

# Pagination + raw output
solti job logs <job-id-or-name> --from-seq 1 --limit 20 --json

# Print the job's CPU/memory usage series
solti job metrics <job-id-or-name>

# Raw metrics JSON (RFC 3339 timestamps, cpuPercent, memBytes)
solti job metrics <job-id-or-name> --json

job logs pages the platform's stored log batches (--from-seq starts at sequence 1, --limit caps the objects per page, default 20). A job with nothing ingested yet prints No logs yet. (under --follow the CLI keeps waiting); a project without log streaming configured reports Log streaming is not configured. job metrics renders a TIMESTAMP | CPU % | MEM (MB) table, or No metrics collected. when no samples exist yet.

Projects & Routing Mode​

Projects are managed with OAuth login (the routing mode requires the project admin role — see Compute Routing):

# Create a project — pick its compute routing mode at creation
# (byoc | serverless; serverless is the default)
solti project create <name> --org <org-id-or-name> --routing-mode byoc

# Switch a project's routing mode after creation (project admin only)
solti project update <project-id> --routing-mode serverless

# Inspect a project (the output includes its Routing mode)
solti project show <project-id>

# List projects / set the active project of the current profile / delete
solti project list [--org <org-id-or-name>]
solti project use <project-id>
solti project delete <project-id> --yes

Resources, Connections, Cronjobs, and Keys​

The CLI also ships command groups for project resources and API keys (admin-only groups are marked):

# Discover available compute resources
solti resource list

# Manage cloud credential connections (admin only)
solti connection list
solti connection get <name>
solti connection create --name <name> --type aws|gcp|azure|r2|github [credentials...]
solti connection delete <name>

# Manage cronjobs (schedules evaluated in UTC)
solti cronjob list
solti cronjob show <id-or-name>
solti cronjob create --name <name> --schedule "<cron>" --image <image> [--command <cmd>] [--args <args>] [--active true|false]
solti cronjob update <id-or-name> [--schedule <cron>] [--active true|false] [--image <image>]
solti cronjob workflows <id-or-name> # run history of a workflow-cronjob's spawned runs
solti cronjob delete <id-or-name>

# Workflows (native DAG runs)
solti workflow submit -f workflow.yaml [--yes]
solti workflow get <id-or-name>
solti workflow list [--name-prefix <prefix>] [--status running|succeeded|failed|cancelled] [--limit <n>] [--offset <n>]
solti workflow cancel <id-or-name> [--yes]

# Manage API keys (admin only)
solti key list
solti key create --name <name> --role admin|developer|viewer [--expires-at <iso-date>]
solti key delete <id-or-name>