CLI reference
Every fluid command with its options and examples, generated from the CLI's own command tree.
Warnings and limits
- Fluid is open to anyone with a verified email address.
- Some commands are for a gateway you run yourself and are refused by
https://api.fluid.sh: changing settings (fluid settings KEY VALUE, an Owner does it in the console's Settings) andfluid audit --fix(an Owner cleans up leaks from the console's Machines page). See Settings. fluid interruptis for testing a job of your own: it sends a real provider interruption.- The project directory
fluid runuploads leaves out files over 100 MB and is refused over 500 MB: see Limits.
fluid help and fluid help COMMAND print this reference in your terminal, without signing in or connecting anything. Add --json to a command for output a script or coding tool can read.
Notes
- JOB means a run ID, unique ID prefix or run name.
- Run quotes machines first. Choose a returned spec and use --on SPEC to launch; --plan always previews.
- Before launching, check effective quotas for the account, region and requested Spot/GPU compute.
- Budgets and connection caps are optional. Set --budget or --cap only when you want a limit.
- Add --json for scripts and coding tools. Help itself needs no sign-in or connection.
- A sign-in is for one workspace. fluid workspace lists the ones this machine holds; --workspace NAME uses another for one command.
- Guides, the full CLI reference and answers to common questions: https://fluid.sh/docs
Commands
| Group | Command | What it does |
|---|---|---|
| Get started | fluid setup | connect Fluid to installed Claude Code and Codex and sign in through the browser |
| Get started | fluid login | sign in: the browser approves this machine and the CLI gets a token of its own, never shown (or store a token made elsewhere, with --token-file PATH) |
| Get started | fluid logout | sign this machine out: end each of its sign-ins on the server, then clear them from this machine |
| Get started | fluid workspace | the workspaces this machine is signed in to, one sign-in each |
| Get started | fluid connect | connect a provider (alone: list them, and in your own terminal open the console's Connections page; --detect: the cloud CLIs signed in here; --from-cli: connect one with its CLI's login) |
| Choose and run | fluid prices | compare compute quotes before choosing a machine |
| Choose and run | fluid run | compare quotes, then run on a selected machine |
| Watch your work | fluid ps | jobs and machines |
| Watch your work | fluid status | one job's cost, saving, progress, moves, recent events and result; without a job, the overview |
| Watch your work | fluid logs | a job's output |
| Watch your work | fluid events | a job's history, oldest first: moves, failures and changes; without a job, the workspace's |
| Watch your work | fluid explain | every policy decision about a job, and why |
| Watch your work | fluid dashboard | open the console in your browser, from your own terminal (elsewhere it prints the console's address); its Connect page while nothing but this machine is connected |
| Move, pause and collect | fluid move | move a running job to another machine |
| Move, pause and collect | fluid suspend | save a run's state and release its allocation |
| Move, pause and collect | fluid resume | resume a suspended job when you choose, using --on for an exact destination |
| Move, pause and collect | fluid stop | end a run and release its allocation |
| Move, pause and collect | fluid pull | download a job's workspace after it ended |
| Move, pause and collect | fluid audit | everything Fluid runs, everywhere, and what leaked or was left behind |
| Your machines | fluid machines | list your enrolled machines |
| Your machines | fluid machine | enroll or operate your own machine |
| Connections and secrets | fluid secrets | secrets jobs can receive (--secret NAME) |
| Connections and secrets | fluid disconnect | remove a named cloud connection |
| Connections and secrets | fluid cap | change a connection's spend cap and nothing else |
| Settings and coding tools | fluid settings | the workspace defaults: policies, fast path, encryption, baseline |
| Settings and coding tools | fluid update | install the newest Fluid CLI from your gateway (its install command) |
| Settings and coding tools | fluid mcp | an MCP server over stdio, for Claude Code and Codex |
| Settings and coding tools | fluid help | usage guide and examples for Fluid or one command |
| Explore and test | fluid interrupt | for testing: a real spot interruption or preemption of a job's machine |
| More | fluid rm | delete ended jobs from your history (they leave every listing; costs still count them) |
| More | fluid rates | Fluid compute's rate card: each chip, its memory sizes, the rate of each, and which are not available yet |
| More | fluid balance | Fluid compute: the workspace's balance and its usage |
fluid setup
connect Fluid to installed Claude Code and Codex and sign in through the browser
usage: fluid setup [-h] [--json] [--client {claude,codex}] [--root DIR] [--skip-login]
[--no-browser] [--device] [--reauth] [--prefer-portal | --no-prefer-portal]
[URL]| Argument | Required | What it is |
|---|---|---|
URL | no | the gateway (default: the current HTTPS gateway or Fluid) |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--client | one of claude, codex | connect only this coding tool (repeatable; default: both installed tools) |
--root | DIR | a project directory tools may upload (repeatable; default: the current safe directory) |
--skip-login | register tools now; sign in on first use | |
--no-browser | show the sign-in page without opening a browser | |
--device | use device-code approval when a new sign-in is needed | |
--reauth | start a fresh sign-in instead of reusing the current one | |
--prefer-portal | explicitly prefer Fluid for supported Python compute in your user instructions and install its skill | |
--no-prefer-portal | remove only Fluid's managed compute preference and unchanged managed skill |
Examples:
fluid setup
fluid setup --prefer-portalNotes:
- Setup reuses a valid sign-in and connects installed Claude Code and Codex.
- --prefer-portal is an optional choice to install Fluid-first compute guidance.
fluid login
sign in: the browser approves this machine and the CLI gets a token of its own, never shown (or store a token made elsewhere, with --token-file PATH)
usage: fluid login [-h] [--json] [--no-browser] [--device] [--reauth]
[--token T | --token-file PATH]
[URL]| Argument | Required | What it is |
|---|---|---|
URL | no | the gateway (default: the current one when it is HTTPS, else https://api.fluid.sh) |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--no-browser | print the console's approval page instead of opening it (open it on any device) | |
--device | use device-code approval when a new sign-in is needed | |
--reauth | start a fresh sign-in instead of reusing the current one | |
--token | T | unsafe on shared hosts: prefer piping the token on stdin (with --token-file -), or use --token-file PATH; kept for older scripts |
--token-file | PATH | read the token from this file (- reads stdin) |
Examples:
fluid loginNotes:
- Browser sign-in returns to the terminal automatically; --device or --no-browser uses a code backup.
- Compare codes only for the device backup. No token needs to be pasted.
- One approval signs this machine in to every workspace you are in, each with a sign-in of its own; the one chosen on the approval page becomes the one in use. Sign-ins this machine holds already stay: fluid workspace lists them. A sign-in whose workspace this machine has not learned yet, such as one an earlier version of Fluid made, is asked first and stays too; only a sign-in Fluid no longer answers for is replaced. A token from --token-file is filed under its own workspace the same way.
fluid logout
sign this machine out: end each of its sign-ins on the server, then clear them from this machine
usage: fluid logout [-h] [--json]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid logoutNotes:
- Ends every sign-in this machine holds on the server, then clears them here. Jobs keep running, and other machines stay signed in. fluid workspace rm NAME signs out of one workspace alone.
- A server that cannot be told is said plainly: revoke the sign-in in the console under Settings, Agents. A gateway you run yourself lists it under Settings, Access.
- A gateway's token kept on this machine stays, and is named.
fluid workspace
the workspaces this machine is signed in to, one sign-in each
usage: fluid workspace [-h] [--json] ACTION ...| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Subcommands: fluid workspace use, fluid workspace pin, fluid workspace unpin, fluid workspace add, fluid workspace rm.
Examples:
fluid workspace
fluid workspace use acme
fluid workspace pin acme
fluid workspace add
fluid ps -w acmeNotes:
- A sign-in is for one workspace: this machine keeps one for each workspace it is signed in to, and one of them is in use. Jobs, quotes and connections are that workspace's.
- A command's workspace, in this order: --workspace NAME (or -w), then FLUID_WORKSPACE, then the pin of this folder or the nearest folder above it, then workspace: NAME in the project's portal.yaml, then the one in use. NAME is an id, a name or a unique start of a name, case ignored. A workspace this machine is not signed in to is refused, never passed over.
- workspace: NAME in portal.yaml is committed with the project, so everyone who runs it runs in the same workspace. A pin is this machine's alone.
- In a script or CI, set PORTAL_REQUIRE_WORKSPACE=1: a command then refuses to run on the one in use alone, and must be told its workspace.
- use switches this machine's one in use, for every terminal, once Fluid says that sign-in still works. pin keeps this folder and the ones under it in one workspace on this machine; unpin removes it. add signs in, with one approval in the browser, to the workspaces of yours this machine has no sign-in for: add NAME makes that one the one in use, and --keep leaves the one in use as it is. rm ends that sign-in on the server, then forgets it.
- fluid workspace says which workspace commands here use, and why. While more than one sign-in is stored, each command says first which workspace it is for; with one, a launch, resume, move and connect still say it.
fluid workspace use
make a stored sign-in the one in use, for every terminal of this machine: no browser is asked. A folder's pin and FLUID_WORKSPACE still come first
usage: fluid workspace use [-h] [--json] NAME| Argument | Required | What it is |
|---|---|---|
NAME | yes | the workspace's id, its name, or a unique start of its name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid workspace use acmefluid workspace pin
make this folder, and the folders under it, use a workspace on this machine: before the one in use, after --workspace and FLUID_WORKSPACE. Kept on this machine, nothing is written to the folder
usage: fluid workspace pin [-h] [--json] NAME| Argument | Required | What it is |
|---|---|---|
NAME | yes | the workspace's id, its name, or a unique start of its name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid workspace pin "Acme Research"
fluid workspace pin ws_4f8a84dc3c6bc96afluid workspace unpin
remove the pin that applies in this folder: its own, or the nearest folder's above it
usage: fluid workspace unpin [-h] [--json]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid workspace unpinfluid workspace add
sign this machine in to one more workspace: the browser's approval page asks which
usage: fluid workspace add [-h] [--json] [--keep] [--no-browser] [--device] [NAME]| Argument | Required | What it is |
|---|---|---|
NAME | no | the workspace to add, chosen on the page: the command says so, and fails (exit 1) when the page's approval named another |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--keep | go on using the workspace in use: the new sign-in is stored beside it | |
--no-browser | print the console's approval page instead of opening it (open it on any device) | |
--device | use device-code approval |
Examples:
fluid workspace add
fluid workspace add "Acme Research"
fluid workspace add --keepfluid workspace rm
sign this machine out of one workspace: end that sign-in on the server, then forget it
usage: fluid workspace rm [-h] [--json] NAME| Argument | Required | What it is |
|---|---|---|
NAME | yes | the workspace's id, its name, or a unique start of its name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid workspace rm acmefluid connect
connect a provider (alone: list them, and in your own terminal open the console's Connections page; --detect: the cloud CLIs signed in here; --from-cli: connect one with its CLI's login)
usage: fluid connect [-h] [--json] [--file SECRETS_ENV] [--method METHOD] [--cap USD] [--ssh]
[--detect] [--from-cli] [--keys] [--secret] [--profile P] [--subscription S]
[--project P] [--federated] [--network N] [--rank-network VPC]
[--subnetwork S] [--private-network | --no-private-network] [--region R]
[--location L] [--yes] [--plan PLAN_ID] [-w NAME]
[provider]| Argument | Required | What it is |
|---|---|---|
provider | no | aws, azure, gcp, lambda, modal or a named connection |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--file | SECRETS_ENV | import KEY=value lines (AWS_ACCESS_KEY_ID, MODAL_TOKEN_ID, PORTAL_SECRET_NAME, ...), or a native service account JSON file with gcp |
--method | how to connect (asked when the provider has several) | |
--cap | USD | spend cap for the provider (with --file and no provider, for each one the file connects) |
--ssh | with --detect, include concrete SSH config aliases | |
--detect | the cloud CLIs installed and signed in on this machine, and which Fluid can connect (it only reads) | |
--from-cli | with aws, azure, gcp, modal or lambda: connect with that CLI's login, in your own account, after listing every step and asking. AWS gets a role the gateway assumes, Azure a federated credential and Google Cloud a workload identity provider that trusts this workspace's identity, with no key (nothing stored a thief could use; a gateway that cannot offer that makes a Google Cloud key); Modal and Lambda a token, sealed on the gateway | |
--keys | with aws or gcp --from-cli: make a dedicated IAM user and access key (AWS) or a service account key (Google Cloud), sealed on the gateway, instead of the keyless method (the role, the trust of this workspace's identity). A Google Cloud connection that was keyless keeps its pool, provider and binding, and a note says how to remove them | |
--secret | with azure --from-cli: make a client secret (sealed on the gateway) instead of the federated credential | |
--profile | P | with aws --from-cli: the AWS CLI profile whose login is used |
--subscription | S | with azure --from-cli: the subscription, by name or id |
--project | P | with gcp --from-cli: the project ID (default: gcloud's current project) |
--federated | with gcp --from-cli: require the keyless connection, which is the default where the gateway offers it (the project trusts this workspace's identity, and no service account key is made); where it cannot be made, stop and say why instead of making a key | |
--network | N | with gcp --from-cli: reuse this existing network (name or resource path) |
--rank-network | VPC | with gcp --from-cli: select a separate existing VPC in this dedicated project and grant the permissions needed for multi-node GPU jobs |
--subnetwork | S | with gcp --from-cli: existing subnetwork resource path in --region |
--private-network, --no-private-network | with gcp --from-cli: omit external IPs; the existing network must provide NAT or another outbound path | |
--region | R | the method's region or location field (AWS keys: region; Azure: location), refused for a method without one; with aws or gcp --from-cli, the connection's region (GCP default us-central1) |
--location | L | with azure --from-cli: where the resource group soma goes (default eastus) |
--yes | with --from-cli: go ahead without asking (the steps are still printed first) | |
--plan | PLAN_ID | with --from-cli: go ahead only with the plan of that id (the plan_id an earlier --json printed); other steps are printed, and nothing is created |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid connect --detect
fluid connect aws --from-cli
fluid connect gcp --from-cli --federated
fluid connect --jsonNotes:
- --detect only reads local cloud CLI sign-ins. --from-cli shows steps and asks before creating access.
- On Google Cloud --from-cli connects keyless by default: the project trusts this workspace's identity, and no service account key is made. --federated requires that; --keys makes a key instead.
- A connected account does not establish usable quota. Check account, region, family and Spot/GPU limits.
- Leave --cap unset unless you want a connection spending limit.
fluid prices
compare compute quotes before choosing a machine
usage: fluid prices [-h] [--json] [--gpu L4|24G|any] [--gpus N] [--nodes N] [--cpus N] [--mem GB]
[--spot | --no-spot] [--providers NAMES] [--regions NAMES] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--gpu | L4|24G|any | a GPU model, a memory per GPU, or any GPU |
--gpus | N | GPUs per machine |
--nodes | N | machines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count |
--cpus | N | at least N vCPUs |
--mem | GB | at least this much memory |
--spot, --no-spot | spot only, or never spot (default: spot when offered) | |
--providers | NAMES | only these providers, e.g. aws,modal |
--regions | NAMES | only these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine) |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid prices --gpu T4
fluid prices --cpus 4 --mem 8 --no-spotfluid run
compare quotes, then run on a selected machine
usage: fluid run [options] (SCRIPT [ARGS...] | --example)| Argument | Required | What it is |
|---|---|---|
SCRIPT | no | a Python file in this directory (the directory is uploaded with it); left out with --example |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--example | run Fluid's example job in place of SCRIPT: a short script that comes with Fluid, says what GPU it is on, counts for under a minute and ends. It needs no file of yours, and nothing from this directory is uploaded. Every other option works as with a script | |
--gpu | L4|24G|any | a GPU model, a memory per GPU, or any GPU |
--gpus | N | GPUs per machine |
--nodes | N | machines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count |
--cpus | N | at least N vCPUs |
--mem | GB | at least this much memory |
--spot, --no-spot | spot only, or never spot (default: spot when offered) | |
--providers | NAMES | only these providers, e.g. aws,modal |
--regions | NAMES | only these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine) |
--on | SPEC | launch on the exact spec selected from the returned quotes |
--gpu-fallback | one of none, same_provider, any | when the GPU asked for is not scheduled within Fluid's bounded wait (5 min on Modal): run on the same provider's cheapest other GPU (same_provider) or any connected provider's (any); none, the default, ends the job with the choices instead |
--ranks | N | start N processes of the script that train together, as torchrun does. N is the total and must divide evenly across --nodes. With --gpu each rank has a GPU of its own on its machine. 1 starts one process with torchrun's variables set, for a script written for torchrun; without --ranks the script runs as a plain process. When plans are on for the workspace, more than one rank needs the Team plan; a refusal with plan_feature says so |
--budget | USD | A budget suspends the run when it is spent: its machine is released and the program stops until someone resumes it. Leave it unset unless a spending limit is wanted. |
--name | a name to refer to the job by | |
--project | NAME | required to launch, optional for quotes: fluid ps and the console group jobs and their cost estimates and comparisons by it |
--env | K=V | an environment variable for the script |
--secret | NAME | a stored secret, as an environment variable |
-d, --detach | with --on, return once the job is queued | |
--plan | only show quotes, including when --on selects a machine | |
--no-return | do not move back to spot when that pays | |
--rightsize | one of on_move, active, off | size CPU and memory from use: at the next move (default), also by moving, or never |
--no-cheaper | never move by itself to a cheaper offer | |
--no-evacuate | no automatic checkpoint and suspension on a spot or preemption notice (the spot policy off) | |
--checkpoint-every | MIN | with --ranks: minutes between the checkpoints the job takes while it runs, 1 at the least (default: set from what one costs, never under 10). A rank that runs out of memory or is killed, or a lost machine, leaves the job suspended on the last one |
--no-checkpoint | with --ranks: take no checkpoints while the job runs; a rank or machine failure then ends the job with its work lost | |
--policy | KEY=VALUE | a policy for this job over portal.yaml, e.g. cheaper=off, rightsize=off, idle.after_min=60 |
--chip | CHIP | run on Fluid compute, on this chip from the rate card (fluid rates), e.g. A100: Fluid places the job, there is no quote, and it is paid from the workspace's balance (fluid balance). Takes --vram, --gpus (several GPUs of the chip on one machine, each paid at the chip's rate), --project, --name, --env, --secret and -d, and none of the options that choose a machine |
--vram | GB | with --chip: the chip's memory in GB, e.g. 80 (default: the cheapest size the chip comes in) |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid run --example --gpu T4
fluid run train.py --gpu T4
fluid run train.py --gpu T4 --on modal:gpu=T4 -d --project training
fluid run train.py --cpus 4 --mem 8
fluid run train.py --gpu T4 --on modal:gpu=T4 -d -- --epochs 10Notes:
- No script at hand? --example runs Fluid's example job in place of SCRIPT: it says what GPU it is on, counts for under a minute and ends. It needs no file of yours, and nothing from this directory is uploaded.
- Without --on, compare quotes without uploading the project or starting a job.
- Select a returned offer's exact spec with --on SPEC. --plan keeps even a selected offer in preview.
- Launching requires --project NAME (1 to 100 characters). Quotes may omit it; budgets stay optional.
- Run it from the project's directory, which is what gets uploaded: the home directory and any directory above it are refused.
- An exact --on pins the run to that destination; moves and resumes keep their own choices.
- A selected launch uploads the project directory; -d returns after the job is queued.
- A launch prints the address of the job's page in the console, where the gateway names its console; --json carries it as console_url.
- Put script arguments after --. Ctrl-C detaches from streaming output; it does not stop the cloud run.
- --gpu accepts a model such as T4, memory such as 24G, or any. --spot requires Spot; --no-spot excludes it.
- Keep secrets out of --env: use fluid secrets set NAME, then --secret NAME.
- A --budget is optional and suspends a run when spent. Check effective quota before launching.
fluid ps
jobs and machines
usage: fluid ps [-h] [--json] [-a] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-a, --all | every job, not only active and recent ones | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid ps
fluid ps --allfluid status
one job's cost, saving, progress, moves, recent events and result; without a job, the overview
usage: fluid status [-h] [--json] [-w NAME] [job]| Argument | Required | What it is |
|---|---|---|
job | no | a job id, a unique start of one, or a job name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid status JOB
fluid status JOB --jsonNotes:
- Once a job has ended, status prints the result its script said, where it printed one. A script says its result by printing one line last: ::result:: and a JSON object, such as ::result:: {"accuracy": 0.914}. --json carries it as job.result.
fluid logs
a job's output
usage: fluid logs [-h] [--json] [-f] [-n N] [-w NAME] job| Argument | Required | What it is |
|---|---|---|
job | yes | a job id, a unique start of one, or a job name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-f, --follow | keep printing until the job ends | |
-n, --tail | N | only the last N lines |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid logs JOB --tail 50
fluid logs JOB --followfluid events
a job's history, oldest first: moves, failures and changes; without a job, the workspace's
usage: fluid events [-h] [--json] [--since ID] [--limit N] [-w NAME] [job]| Argument | Required | What it is |
|---|---|---|
job | no | a job id, a unique start of one, or a job name |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--since | ID | only events after this one: --json's next |
--limit | N | at most N events, from 1 to 500 (default: all of them, or with --json the first 100) |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid events JOB
fluid events JOB --json --since 40fluid explain
every policy decision about a job, and why
usage: fluid explain [-h] [--json] [-w NAME] job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid explain JOBfluid dashboard
open the console in your browser, from your own terminal (elsewhere it prints the console's address); its Connect page while nothing but this machine is connected
usage: fluid dashboard [-h] [--json] [--link] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--link | print (with --json, return) the console's address instead of opening a browser: you sign in there as usual, and the address holds no credential | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid dashboardNotes:
- Run this in your own terminal: it opens the console in your browser, and you sign in there.
fluid move
move a running job to another machine
usage: fluid move [-h] [--json] [--to SPEC] [--gpu-fallback MODE] [--gpu L4|24G|any] [--gpus N]
[--nodes N] [--cpus N] [--mem GB] [--providers NAMES] [--regions NAMES]
[--plan] [--no-wait] [--wait] [-w NAME]
job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--to | SPEC | exactly here, e.g. modal:gpu=L4 |
--gpu-fallback | one of none, same_provider, any | with --to: when that GPU is not scheduled within Fluid's bounded wait, move to the same provider's cheapest other GPU (same_provider) or any connected provider's (any) instead; none, the default, leaves the job where it runs |
--gpu | L4|24G|any | a GPU model, a memory per GPU, or any GPU |
--gpus | N | GPUs per machine |
--nodes | N | machines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count |
--cpus | N | at least N vCPUs |
--mem | GB | at least this much memory |
--providers | NAMES | only these providers, e.g. aws,modal |
--regions | NAMES | only these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine) |
--plan | only show where it would go and at what price | |
--no-wait | return once the move is accepted instead of waiting up to 15 s for its outcome | |
--wait | with --json, wait up to 15 s for the outcome (without --json that is the default) | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid move JOB --gpu L4 --plan
fluid move JOB --gpu L4Notes:
- --plan previews the destination; without it, move pauses and transfers the running program.
- Use either --to SPEC or hardware requirements, not both.
- move waits up to 15 s and prints the outcome: where it landed, or why it did not. With --no-wait it returns once the move is accepted; fluid events JOB says when it lands or why it did not; fluid status JOB where it runs.
- --json returns once the move is accepted (outcome accepted) unless --wait is given, which follows the move as above (outcome landed, aborted with its reason, parked or pending).
- A job whose program has already exited is not moved: the request is refused with the job's end.
fluid suspend
save a run's state and release its allocation
usage: fluid suspend [-h] [--json] [--last-checkpoint] [-w NAME] job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--last-checkpoint | a job of several ranks: suspend it on its last checkpoint now, without pausing it (for ranks that hang); the work since that checkpoint runs again after a resume | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid suspend JOBNotes:
- Suspend saves the run's state and releases its allocation. Resume continues it later.
fluid resume
resume a suspended job when you choose, using --on for an exact destination
usage: fluid resume [-h] [--json] [--on SPEC] [--budget USD] [--gpu L4|24G|any] [--gpus N]
[--nodes N] [--cpus N] [--mem GB] [--providers NAMES] [--regions NAMES]
[-w NAME]
job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--on | SPEC | exactly here instead of the best offer |
--budget | USD | a new budget for the job in place of its old one (what it spent so far counts against it): the way on when a stop set from the old budget suspended it |
--gpu | L4|24G|any | a GPU model, a memory per GPU, or any GPU |
--gpus | N | GPUs per machine |
--nodes | N | machines running the job together (default 1). For several machines, choose on-demand EC2 GPUs or a GCE shape with eight GPUs: a2-highgpu-8g (A100 40 GB), a2-ultragpu-8g (A100 80 GB), or g2-standard-96 (L4). To preview A2 Ultra Flex-start, use --plan with a region- and zone-pinned --on spec ending in :provisioning=flex_start. A live move keeps the job's node count |
--cpus | N | at least N vCPUs |
--mem | GB | at least this much memory |
--providers | NAMES | only these providers, e.g. aws,modal |
--regions | NAMES | only these regions, e.g. us-east-1,us-west-2 (without it EC2 quotes cover every region where the account's quota admits the machine) |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid resume JOB --gpu T4
fluid resume JOB --on modal:gpu=T4
fluid resume JOB --budget 3Notes:
- Resume only when you want a suspended run to use compute again.
- Use either --on SPEC or hardware requirements, not both.
- A run its budget suspended goes on with a larger one: --budget USD replaces the old budget, and what the run spent so far counts against it.
fluid stop
end a run and release its allocation
usage: fluid stop [-h] [--json] [-w NAME] job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid stop JOBNotes:
- Stop ends the run and releases its allocation. An enrolled personal computer is not powered off.
fluid pull
download a job's workspace after it ended
usage: fluid pull [-h] [--json] [-w NAME] job [dir]| Argument | Required | What it is |
|---|---|---|
job | yes | |
dir | no | where to unpack the job's output (default: its job ID). A multi-node job has a separate subdirectory for each machine: node-0, node-1 and so on |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid pull JOB ./resultsfluid audit
everything Fluid runs, everywhere, and what leaked or was left behind
usage: fluid audit [-h] [--json] [--fix] [--untracked] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--fix | refused by https://api.fluid.sh (an Owner cleans up leaks in the console); on a gateway you run yourself, terminate its leaked resources, then audit again | |
--untracked | with --fix, ALSO terminate Fluid-tagged machines that no gateway of yours tracks. CAREFUL: when several Fluid deployments share an account, those can be another deployment's running jobs | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid audit
fluid audit --jsonNotes:
- It only checks resources, and exits 1 when something leaked, was left behind or could not be checked: with --json, "leaks", "untracked", "unlistable" and "left_behind" must be empty.
- "left_behind" lists what a machine's end left in your cloud account that Fluid made and does not delete (on Azure, a VM's disk that nothing proves Fluid's own). It bills until you remove it, with the command shown, in that connection's own account.
- Machines of another Fluid deployment in the same cloud account are listed apart, under "another deployment's" (with --json, "other_controllers", and "owner": "other" on each): they are not this workspace's, so not its leaks and not its to end.
- --fix is refused by https://api.fluid.sh: an Owner cleans up leaks in the console (Machines, Audit, Clean up leaks).
- On a gateway you run yourself --fix terminates leaks; --untracked may affect another deployment's resources and needs explicit review.
fluid machines
list your enrolled machines
usage: fluid machines [-h] [--json] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid machinesfluid machine
enroll or operate your own machine
usage: fluid machine [-h] [--json] {command,add,rm,join,run,status,uninstall} ...| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Subcommands: fluid machine command, fluid machine add, fluid machine rm, fluid machine join, fluid machine run, fluid machine status, fluid machine uninstall.
Examples:
fluid machine command --name workstation
fluid machine statusNotes:
- Run the returned installation command on your computer, then approve it in Fluid with the link it prints (its pairing code is filled in).
- Use --on machine.NAME to target an approved machine. Releasing a run never powers that computer off.
fluid machine command
Create a short-lived enrollment command for your own computer.
usage: fluid machine command [-h] [--json] [--name NAME] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--name | ||
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid machine command --name workstationfluid machine add
Install a machine daemon through a reviewed SSH host.
usage: fluid machine add [-h] [--json] [--name NAME] [--yes] [-w NAME] host| Argument | Required | What it is |
|---|---|---|
host | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--name | ||
--yes | ||
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid machine add gpu-host --name workstationfluid machine rm
Remove an enrolled machine.
usage: fluid machine rm [-h] [--json] [-w NAME] id| Argument | Required | What it is |
|---|---|---|
id | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid machine rm MACHINE_IDfluid machine join
Enroll this computer using an installation code read from a file or stdin.
usage: fluid machine join [-h] [--json] [--name NAME] [--system] --code-file CODE_FILE
[--no-service] [--insecure-http] [--ssh-host-key SSH_HOST_KEY]
url| Argument | Required | What it is |
|---|---|---|
url | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--name | ||
--system | ||
--code-file | ||
--no-service | ||
--insecure-http | ||
--ssh-host-key |
Examples:
fluid machine join https://api.fluid.sh --code-file -fluid machine run
Run this computer's Fluid daemon.
usage: fluid machine run [-h] [--json] [--system]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--system |
Examples:
fluid machine runfluid machine status
Show this computer's Fluid daemon status.
usage: fluid machine status [-h] [--json] [--system]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--system |
Examples:
fluid machine statusfluid machine uninstall
Uninstall this computer's Fluid daemon.
usage: fluid machine uninstall [-h] [--json] [--system]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--system |
Examples:
fluid machine uninstallfluid secrets
secrets jobs can receive (--secret NAME)
usage: fluid secrets [-h] [--json] [-w NAME] ACTION ...| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Subcommands: fluid secrets set, fluid secrets rm.
Examples:
fluid secrets
fluid secrets set HF_TOKEN
fluid run train.py --secret HF_TOKEN -dNotes:
- Values are read privately from the terminal or stdin. Pass stored secrets to runs by name.
fluid secrets set
store a secret from the terminal, stdin or a named environment variable
usage: fluid secrets set [-h] [--json] [--from-env ENV] [-w NAME] name| Argument | Required | What it is |
|---|---|---|
name | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--from-env | ENV | read the value from this local environment variable without printing it |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid secrets set HF_TOKEN
fluid secrets set HF_TOKEN --from-env HF_TOKENfluid secrets rm
remove a secret
usage: fluid secrets rm [-h] [--json] [-w NAME] name| Argument | Required | What it is |
|---|---|---|
name | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid secrets rm HF_TOKENfluid disconnect
remove a named cloud connection
usage: fluid disconnect [-h] [--json] [-w NAME] provider| Argument | Required | What it is |
|---|---|---|
provider | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid disconnect modalfluid cap
change a connection's spend cap and nothing else
usage: fluid cap [-h] [--json] [-w NAME] provider USD| Argument | Required | What it is |
|---|---|---|
provider | yes | |
USD | yes | the cap in dollars, 0 or more |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid cap aws 50fluid settings
the workspace defaults: policies, fast path, encryption, baseline
usage: fluid settings [-h] [--json] [-w NAME] [KEY] [VALUE]| Argument | Required | What it is |
|---|---|---|
KEY | no | one setting, e.g. spot.on or return.min_saving_pct |
VALUE | no | its new value (null clears it) |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid settings
fluid settings spot.onfluid update
install the newest Fluid CLI from your gateway (its install command)
usage: fluid update [-h] [--json] [--check | --force]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--check | only say whether an update is available | |
--force | install the served build even when it is this one |
Examples:
fluid update
fluid update --checkNotes:
- It runs your gateway's install command: your sign-in and coding tool setup stay, and Fluid's skill is refreshed for the tools you chose to prefer Fluid in. Restart those tools afterwards.
- Other commands check once a day and say when an update is available; FLUID_NO_UPDATE_CHECK=1 turns that off.
fluid mcp
an MCP server over stdio, for Claude Code and Codex
usage: fluid mcp [-h] [--json] [--root DIR] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--root | DIR | a directory run may also upload projects from, beside the one the server starts in (repeatable) |
-w, --workspace | NAME | hold every tool of this server to this workspace's stored sign-in for its whole life, whichever is in use: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins) |
Examples:
fluid mcp --root /path/to/projectNotes:
- fluid setup registers this server with installed coding tools; they normally start it for you.
fluid help
usage guide and examples for Fluid or one command
usage: fluid help [-h] [--json] [COMMAND ...]| Argument | Required | What it is |
|---|---|---|
COMMAND | no | a command or nested command, e.g. run or machine command |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else |
Examples:
fluid help run
fluid help machine commandfluid interrupt
for testing: a real spot interruption or preemption of a job's machine
usage: fluid interrupt [-h] [--json] [--after TIME] [-w NAME] job| Argument | Required | What it is |
|---|---|---|
job | yes |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--after | TIME | EC2 interruption notice, e.g. 2m (default: 2m); a Fargate stop begins at once |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid interrupt JOB --after 2mNotes:
- Testing only: this sends a real provider interruption to a job's machine.
fluid rm
delete ended jobs from your history (they leave every listing; costs still count them)
usage: fluid rm [-h] [--json] [--ended] [--project NAME] [--before TIME] [--yes] [-w NAME]
[JOB ...]| Argument | Required | What it is |
|---|---|---|
JOB | no | the jobs to delete, by id, name or id prefix |
| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
--ended | every ended job (with --project or --before to narrow it) | |
--project | NAME | with --ended: only this project's jobs |
--before | TIME | with --ended: only jobs created before this (an ISO date or time, UTC) |
--yes | delete what the plan lists without asking | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid rm JOB
fluid rm --ended --project old-sweeps
fluid rm --ended --before 2026-10-01 --yesNotes:
- Only ended runs can be deleted: they leave every listing, and their costs and savings still count.
- It shows what would go first, naming runs that could still be continued from kept checkpoints, and asks; --yes deletes what it shows without asking.
fluid rates
Fluid compute's rate card: each chip, its memory sizes, the rate of each, and which are not available yet
usage: fluid rates [-h] [--json] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid rates --helpfluid balance
Fluid compute: the workspace's balance and its usage
usage: fluid balance [-h] [--json] [-w NAME]| Option | Value | What it does |
|---|---|---|
--json | machine output: one JSON document per line, nothing else | |
-w, --workspace | NAME | the workspace whose sign-in this command alone uses: its id, its name or a unique start of the name (FLUID_WORKSPACE does the same; this option wins, then the variable, then a folder's pin, then the one in use) |
Examples:
fluid balance --help