Name
nebius ai job create
Creates a job.
This command is deterministic and non-interactive. Use it for scripts, config-driven workflows, CI, and agents.
For human first-time setup, use the guided ai create wizard. Static create commands report validation errors with recovery hints instead of switching into prompt mode.
With —async, explicit —format json or yaml returns the full Operation on stdout. Its id identifies the operation; resource_id identifies the created resource. Use --format 'jsonpath={.resource_id}' to extract the ID. Submission does not wait for the resource to become ready or finish.
Examples
Replace IMAGE, PLATFORM_NAME and PRESET_NAME with your values.
nebius ai job create —image IMAGE —platform PLATFORM_NAME —preset PRESET_NAMEOptions
--args (string)
Override container arguments.
--async (bool)
Return immediately after starting the create operation.
--container-command (string)
Override container entrypoint command.
--container-port (string array)
Expose a port. Repeat this flag for each port. The default protocol is HTTP. For endpoints, HTTP ports use managed HTTPS URLs. gRPC uses the same URLs. TCP ports use tls://HOST:443 URLs. UDP ports do not get managed URLs.
Format: HOST[:CONTAINER][/http|tcp|udp]; pattern: ^(\d+)(?::(\d+))?(?:/(http|tcp|udp))?$; examples: 8080, 8080/http, 6379/tcp, 8080:80/tcp
--cpu (string)
CPU family and vCPU count, such as amd:16. Use instead of —platform and —preset.
Mutually exclusive with: --gpu, --platform, --preset.
--disk-size (string)
Disk size of the VM. The service checks the minimum size for the boot image.
Format: quantity; default: 250Gi; examples: 100Gi, 1Ti
--dry-run (bool)
Validate the request without creating a resource.
--env (string array)
Set an environment variable. Repeat this flag for each variable.
Format: KEY=VALUE
--env-secret (string array)
Set an environment variable from MysteryBox. Repeat this flag for each variable. SECRET_SELECTOR can be a secret name, secret ID, version ID, or SECRET_ID@VERSION_ID.
Format: KEY=SECRET_SELECTOR
--follows-spot-price (bool)
The preemptible VM accepts the current spot price. Requires —preemptible.
Mutually exclusive with: --on-demand, --spot-pricing-policy-id.
--gpu (string)
GPU model and optional count, such as h100:8. Use instead of —platform and —preset.
Mutually exclusive with: --cpu, --platform, --preset.
--image (string) [required]
Container image reference in the registry/path:tag or registry/path@digest format.
--inject-file (string array)
Copy a local config file into the container. Repeat this flag for each file. CONTAINER_PATH must be an absolute path. The file is read-only in the container. The limit is 64 KiB.
Format: LOCAL_PATH:CONTAINER_PATH
--name (string)
Application name.
--on-demand (bool)
Use a regular, non-preemptible VM.
Mutually exclusive with: --follows-spot-price, --spot-pricing-policy-id, --preemptible.
--parent-id (string)
Parent ID (if not specified, it will be taken from the CLI profile).
--platform (string)
Platform of compute resources (e.g. gpu-h100-sxm, gpu-l40s-d), default is gpu-h100-sxm in eu-north1 and gpu-h200-sxm elsewhere. Will be deprecated soon; use —gpu or —cpu.
Mutually exclusive with: --gpu, --cpu.
--preemptible (bool)
Use a preemptible VM (cheaper but can be stopped by the platform at any time). Requires —follows-spot-price or —spot-pricing-policy-id.
Mutually exclusive with: --on-demand.
--preset (string)
Preset for selected platform (e.g. 1gpu-16vcpu-200gb), default is minimum available preset for the platform. Will be deprecated soon; use —gpu or —cpu.
Mutually exclusive with: --gpu, --cpu.
--registry-password (string)
Container registry password.
Mutually exclusive with: --registry-secret.
--registry-secret (string)
MysteryBox secret selector with REGISTRY_USERNAME and REGISTRY_PASSWORD payload keys. Selector can be a secret name, secret ID, version ID, or SECRET_ID@VERSION_ID.
Mutually exclusive with: --registry-username, --registry-password.
--registry-username (string)
Container registry username.
Mutually exclusive with: --registry-secret.
--restart-policy (string)
Restart policy.
Default: never
A value must be one of:
neveron-failure
--shm-size (string)
Size of /dev/shm (e.g., 64Mi, 128Mi, 1Gi), default - 16Gi for GPU platforms, 0 for CPU.
Format: quantity
--spot-pricing-policy-id (string)
PricingPolicy ID used as the maximum agreed price for the preemptible VM. Requires —preemptible.
Mutually exclusive with: --on-demand, --follows-spot-price.
--ssh-key (string array)
Public key authorized for SSH access to the job (repeatable). Use for debugging only: setting SSH keys also assigns a public IPv4 address, which counts against your public IPv4 quota. Omit this flag for regular runs and read output with ‘nebius ai job logs’.
--subnet-id (string)
Subnet ID (default: the project’s default subnet in the workload region).
--timeout (duration: 2h30m10s)
Job timeout. The service checks it asynchronously.
Format: duration; range: 5m to 168h; default: 24h
--volume (string array)
Mount a volume. Repeat this flag for each volume. MODE is rw or ro. The default is rw. PROFILE selects the AWS credentials profile. The default is ‘default’. For S3 authentication with MysteryBox, use PROFILE@SECRET_SELECTOR. SECRET_SELECTOR can be a secret name, secret ID, version ID, or SECRET_ID@VERSION_ID.
Format: SOURCE:CONTAINER_PATH[:MODE] or s3://BUCKET:/container_path[:MODE[:PROFILE]]
--working-dir (string)
Working directory (absolute path).
Global Options
-h, --help (bool)
Show this message.
-p, --profile (string)
Set a profile for interacting with the cloud.
--format (string)
Output format. Supported values: yaml|json|jsonpath|table|text.
-f, --file (string)
Input file. For ‘update’ commands automatically set —full=true.
-c, --config (string)
Provide path to config file.
--debug (bool)
Write debug logs to stderr. Commands save debug logs in the config directory under logs/, except help and shell completion.
-I, --impersonate-service-account-id (string)
Impersonate into the service account and use its token for a command.
--color (bool)
Enable colored output.
--no-browser (bool)
Do not open browser automatically on auth.
--insecure (bool)
Disable transport security.
--auth-timeout (duration: 2h30m10s)
Set the timeout for the request including authentication process, default is 15m0s.
--per-retry-timeout (duration: 2h30m10s)
Set the timeout for each retry attempt, default is 20s.
--retries (uint)
Set the number of retry attempts, 1 is disable retries, default is 3.
--no-check-update (bool)
Suppress check for updates.
--no-progress (bool)
Suppress progress indicators and spinners.