Jungle Grid
CLI
Get startedCLI ReferenceAPI ReferencePortalMCP IntegrationRelease notes

CLI Reference

CLI Command Reference

Every command available in the jungle CLI — grouped by area with flags, descriptions, and copyable examples.

Start with npxnpx jungle-grid@latest loginNode.js 18+

Auth

Auth commands

Authenticate the CLI against your Jungle Grid account using the browser-backed device flow.

jungle login

Open a browser window to authenticate this machine. On completion the CLI stores a session token locally.

Flags

FlagDescription
--no-browser
Print the device URL instead of opening it automatically.

Examples

Standard login
jungle login
Headless / CI
jungle login --no-browser
If your team points at a non-default orchestrator, set JUNGLE_GRID_API before running login so the CLI stores the correct environment.
jungle whoami

Print the currently authenticated account email and session metadata.

Examples

Check session
jungle whoami
jungle logout

Revoke the local session token and sign out of this machine.

Examples

Sign out
jungle logout

Submit

Submit commands

Queue workloads by intent. The orchestrator resolves placement — you describe what you want to run, not which GPU to use.

jungle submit

Submit a workload. The CLI fetches a cost estimate first and asks for confirmation before queuing.

Flags

FlagDescription
--workload <type>
Workload class: inference | batch | trainingrequired
--image <ref>
Container image referencerequired
--model-size <B>
Approximate model size in billions of params
--name <name>
Human-readable job label
--command <cmd>
Override container entrypoint command
--arg <arg>
Argument passed to --command (repeatable)
--optimize-for <hint>
Placement hint: cost | speed
--max-price-hour <usd>
Optional max hourly price ceiling for this job
--prefer-family <family>
Optional preferred GPU family without exact model selection
--avoid-family <family>
Optional GPU family to avoid (repeatable)
--region <slug>
Optional region preference such as us-east
--latency-priority <level>
Latency weight override: low | balanced | high
--cost-priority <level>
Cost weight override: low | balanced | high
--registry-credential <id>
Saved credential ID for private images
--yes-y
Skip the estimate confirmation prompt

Examples

Inference
jungle submit \
  --workload inference \
  --model-size 7 \
  --image ghcr.io/acme/infer:latest \
  --name chat-infer
Batch (cost-optimised)
jungle submit \
  --workload batch \
  --model-size 3 \
  --image node:22-alpine \
  --command node --arg app.js \
  --optimize-for cost
Training (speed-optimised)
jungle submit \
  --workload training \
  --model-size 40 \
  --image pytorch/pytorch:2.4.0-cuda12.1-cudnn9-runtime \
  --command python --arg train.py \
  --optimize-for speed
Private image
jungle submit \
  --workload inference \
  --image registry.example.com/mymodel:v2 \
  --registry-credential cred_abc123
Advanced routing
jungle submit \
  --workload inference \
  --model-size 13 \
  --image ghcr.io/acme/infer:latest \
  --max-price-hour 2.50 \
  --prefer-family l4 \
  --avoid-family a100 \
  --region us-east \
  --latency-priority high \
  --cost-priority balanced
The submit estimate now shows likely placement, hourly rate, total cost range, queue wait range, estimated start window, and any soft constraints that were auto-relaxed.

Jobs

Jobs commands

Inspect running and completed workloads. Find job IDs, review lifecycle state, and tail runtime logs.

jungle jobs

List all jobs on your account with their current status.

Examples

List jobs
jungle jobs
jungle status <job-id>

Show the detail view for a single job — the same data the portal status page uses.

Examples

Job detail
jungle status job_1a2b3c4d
jungle logs <job-id>

Tail the runtime output for a job. Useful once you already know which job you want to inspect.

Flags

FlagDescription
--follow-f
Stream new log lines as they arrive.
--tail <n>
Number of recent lines to show at start (default 100).

Examples

Static tail
jungle logs job_1a2b3c4d
Follow stream
jungle logs job_1a2b3c4d --follow
Last 50 lines
jungle logs job_1a2b3c4d --tail 50

Nodes

Nodes commands

Browse public capacity, register a provider node, and manage the local node-agent daemon.

jungle nodes

List public capacity currently available in the marketplace.

Flags

FlagDescription
--workload <type>
Filter nodes by supported workload class.

Examples

All nodes
jungle nodes
Inference nodes only
jungle nodes --workload inference
jungle nodes show <node-id>

Show the detail view for a single node including capacity signals.

Examples

Node detail
jungle nodes show node_xyz789
jungle node register

Register this machine as a provider node. Collects payout details and writes local node config.

Flags

FlagDescription
--dispatch-url <url>
Local dispatch endpoint for the node agent.required
--location <region>
Geographic label for this node (e.g. lagos, london).

Examples

Register
jungle node register \
  --dispatch-url http://127.0.0.1:8090 \
  --location lagos
jungle node install-agent

Download and install the managed node-agent binary. Most providers can skip this — jungle node start installs on demand.

Examples

Install
jungle node install-agent
jungle node start / stop / status

Start the node-agent in the background as a daemon, stop it, or check its current state.

Flags

FlagDescription
--daemon
Run the agent as a background daemon (start only).

Examples

Start daemon
jungle node start --daemon
Check status
jungle node status
Stop daemon
jungle node stop

Credentials

Credentials commands

Save private container registry credentials so you can submit private images without pasting secrets into every command.

jungle registry-credentials list

List all saved registry credentials on your account.

Examples

List
jungle registry-credentials list
jungle registry-credentials create

Interactively save a new registry credential. The CLI prompts for the registry host, username, and access token.

Examples

Create
jungle registry-credentials create
jungle registry-credentials show <id>

Show the metadata for a saved credential (secrets are never echoed).

Examples

Show
jungle registry-credentials show cred_abc123
jungle registry-credentials delete <id>

Permanently delete a saved registry credential.

Examples

Delete
jungle registry-credentials delete cred_abc123
Deleting a credential that is referenced by a running job will not interrupt that job, but future submits using the same --registry-credential flag will fail.