This method is recommended for cases where a human is authenticating with Garnet.
You can authenticate with Garnet by supplying your Garnet access token. The access token can be retrieved from your Garnet dashboard under your profile section.
You can use the login command in the CLI to authenticate to Garnet.
$ garnet login <token>
This method is recommended for cases where a machine (eg. a server) is authenticating with Garnet. This is the recommended authentication method for using Garnet in external platforms such as CI tools and cloud platforms.
Service keys allow the Garnet CLI to fetch the scoped configuration without using the interactive method of
You can use the
garnet run command with a service key by specifying the
garnet run --service-key=<your-service-key> -- <command>
You can read more on service keys on this dedicated guide.