You can launch an instance from the command line using the Cloud API:
-
Create a file named
request.json
that contains the necessary payload. For example:{ "region_name": "us-east-1", "instance_type_name": "gpu_1x_a100_sxm4", "ssh_key_names": [ "SSH-KEY" ], "file_system_names": [], "quantity": 1 }
-
Run the following command:
curl -u API-KEY: https://cloud.lambdalabs.com/api/v1/instance-operations/launch -d @request.json -H "Content-Type: application/json" | jq .
Replace API-KEY with your actual API key. Don’t remove the trailing colon (:).