How do I retrieve the details of an instance from a command line?

You can retrieve the details of an instance from a command line using the Cloud API.

First, generate an API key. Then, run the following command:

curl -u $CLOUD_API_KEY: https://cloud.lambdalabs.com/api/v1/instances/INSTANCE-ID | jq .

Replace API-KEY with your actual API key. Don’t remove the trailing colon (:).

Replace INSTANCE-ID with the ID of the instance you want details about. You can obtain the ID from the Usage Dashboard.


Last modified December 2, 2022: Be more clear (de0e5b0)