CLI Examples
This article provides examples of popular use cases illustrating how to use the Command Line Interface (CLI)
Login¶
Login via run:ai sign in page (web)¶
You can login from the UI, if you are using SSO or credentials
Login via terminal (credentials)¶
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¶
runai workspace submit -p alon -i runai.jfrog.io/demo/quickstart-demo --cpu-core-request 0.3 --cpu-core-limit 1 --cpu-memory-request 50M --cpu-memory-limit 1G --gpu-devices-request 1 --gpu-memory-request 1G