squarecloud app-list --token <YOUR_API_TOKEN>
However, this is not the best way to store your API key. There is a much better alternative.
Alternatively, you can set your API key as an environment variable
SQUARECLOUD-TOKEN. The command will automatically read this variable
--token option is not used.
Setting Your Environment Variable:
To set an environment variable named SQUARECLOUD-TOKEN, use the following command based on your operating system.
setx SQUARECLOUD-TOKEN "YOUR_API_TOKEN"
Was this page helpful?