CLI commands examples
This section provides examples of popular use cases illustrating how to use the Command Line Interface (CLI).
Logging in
Logging in via NVIDIA Run:ai sign in page (web)
You can log in from the UI, if you are using SSO or credentials
Logging in via terminal (credentials)
Configuration
Setting a default project
Submitting a workload
Naming a workload
Use the commands below to provide a name for a workload.
Setting a the workload name ( my_workload_name)
Setting a random name with prefix (prefix=workload type)
Setting a random name with specific prefix (prefix determined by flag)
Labels and annotations
Labels
Annotations
Container's environment variables
Requests and limits
Submitting and attaching to process
Submitting a Jupyter notebook
Submitting distributed training workload with TensorFlow
Submitting a multi-pod workload
Submit and bash
Submitting a workload with bash command
Bashing into the workload
Submitting distributed training workload with MPI
Submitting with PVC
New PVC bounded to the workspace
New PVCs will be deleted when the workload is deleted
New ephemeral PVC
New ephemeral PVCs will be deleted when the workload is deleted or paused
Existing PVC
Existing PVCs will not be deleted when the workload is deleted
Master/Worker configuration
--command flag and -- are set both leader (master) and workers command/arguments
--master-args flag sets the master arguments
--master-command flag sets the master commands with arguments
--master-args and --master-command flags can be set together
Overriding both the leader (master) and worker image's arguments
Overriding both the leader (master) and worker image's commands with arguments
Overriding arguments of the leader (master) and worker image's arguments with different values
Overriding command with arguments of the leader (master) and worker image's arguments
Listing objects
Submitting with clean pod policy
Submitting a distributed workload with a policy to clean:
Listing all workloads in the user's scope
Listing projects in a YAML format
Listing nodes in a JSON format
CLI reference
For the full guide of the CLI syntax, see the CLI reference.
Last updated