Quickstart
1. Install the Anyscale CLI
Install it from pip.
pip install anyscale
2. Authentication
Anyscale authenticates API requests using CLI token, which can be found at https://console.anyscale.com/credentials. You need to configure your token and generate your credential files in order to use Anyscale CLI.
# Run the command below and follow the instructions
anyscale auth set
Alternatively, you can set your token using ANYSCALE_CLI_TOKEN
environment variable. Anyscale CLI prefers the environment variable over the credentials file.
Be sure to keep your auth token private and secure to prevent unwanted access to your Anyscale resources.
3. Test it out
To verify that everything is working, try listing the clusters you have access to.
anyscale cluster list
If the authentication is working, you shouldn't see any error related to permissions.
4. Next Steps
You have successfully set up the Anyscale CLI, you can start interacting with Anyscale from your terminal. If you have questions about how to use Anyscale CLI commands, check out the reference.