Skip to main content

anycloud job

Run and list finite Jobs, each on its own VM.

The deprecated names anycloud run and anycloud submit still run anycloud job, with a warning. They will be removed in a future release.

anycloud job [image] [-- command...] [options]

Use -- before a container command that has its own flags. Omitting the image in an interactive terminal opens the GHCR image picker. In CI or another non-interactive shell, pass the image as the first argument.

The bare names list and ls select listing. To launch an image with either name, include its tag, for example anycloud job list:latest.

anycloud job list​

anycloud job list [options]
anycloud job ls --status running
anycloud job list -n 400
anycloud job list --json

List only Jobs, using the same filters, limits, automatic agent session scope, and JSON/CSV/ID output as anycloud list. The command prints directly without a view picker. Its type is fixed; --type is not accepted. Put listing options after list or ls.

Creation options​

OptionDescription
-i, --id IDCustom workload ID
-e, --env KEY=VALUEEnvironment value; repeatable. -e KEY reads the current shell
--env-file FILELoad values from a dotenv file
--secret NAMEInject a named Secret; repeatable
--max-retries NAt most N retries after a loss
--no-checkpointNo checkpoint bucket, even on spot
--require-nested-virtualizationOn a VM: only types with nested virtualization (KVM), launched with it on
--host-dockerOn a VM: the host's Docker and /workspace; see Docker in a VM Job
--credentials NAMESelect one saved compute credential
--region REGIONPin one compute region
--regions A,B,COn a VM: the regions it may launch in, with failover between them
--vm-type TYPEExact VM; repeat for an ordered fallback pool, each in every region first
--gpu-type TYPEGPU model and optional count; repeat for an ordered fallback pool
--spotUse spot/preemptible capacity
--disk-size GBRoot disk capacity
--disk-tier TIERmedium, high, or ultra
--disk-iops NAWS or GCP: root IOPS, overriding the tier; see disk performance
--disk-throughput MiBpsAWS or GCP: root throughput in MiB/s, overriding the tier
--zone ZONEAvailability zone
--input-bucket NAMERead-only input at /mnt/input
--output-bucket NAMEWritable output at /mnt/output
--checkpoint-bucket NAMEExisting read-write checkpoint at /mnt/checkpoint
--input-storage-credentials NAMECross-account input identity
--input-storage-region REGIONCross-account input Bucket region; omit for Cloudflare R2
--output-storage-credentials NAMECross-account output identity
--output-storage-region REGIONCross-account output Bucket region; omit for Cloudflare R2
--checkpoint-storage-credentials NAMECross-account checkpoint identity
--checkpoint-storage-region REGIONCross-account checkpoint Bucket region; omit for Cloudflare R2
--gpus VALUEDocker GPU exposure: all or a count
--shm-size SIZEShared memory, such as 8g
--memory LIMITContainer memory limit
--cpus COUNTContainer CPU limit
--runtime RUNTIMEDocker runtime
--ipc MODEhost, private, or shareable
--ulimit VALUEDocker ulimit; repeatable
--bind PATHVolume bind mount; repeatable
--privilegedDeprecated: privileged container, root on its host; use --host-docker
--waitWait until the Job completes; exit codes as in anycloud wait

--wait submits, prints the ID, then waits like anycloud wait: it exits 0 when the Job completes and 1 when it fails.

--gpu-type and --vm-type are mutually exclusive. --credentials may appear once. If omitted for VM-backed compute, the CLI selects the sole saved credential or shows a picker in an interactive terminal. Multiple credentials in non-interactive use require --credentials. Local compute is credentialless.

An explicit --checkpoint-bucket works with spot or on-demand Jobs, must already exist, and is always retained. Without that flag, a spot Job uses its automatic workload-named checkpoint bucket and deletes it when the Job finishes.

AWS, Azure, and GCP dedicated Jobs use the selected compute identity for automatic spot checkpoints and do not need explicit checkpoint storage flags. Lambda and Local Jobs do not have a compatible native bucket identity, so a checkpoint bucket requires explicit checkpoint storage credentials and region. Scoped cross-identity storage currently requires AWS credentials.

Examples​

anycloud job ghcr.io/acme/train:latest \
--credentials my-aws \
--gpu-type h100:8 \
--spot \
--gpus all \
-- python train.py --epochs 10
anycloud job ghcr.io/acme/app:latest \
--credentials my-aws \
--vm-type t3.medium

GITHUB_TOKEN supplies GitHub authentication in non-interactive use; see anycloud login. ANYCLOUD_CREDENTIALS_NAME is the credentials-name fallback when the flag is absent.

For field precedence and constraints, see Configuration.