CLI Authentication

pre-requisites

You will need your access token, which you can obtain by accessing the URL https://environments.bunnyshell.com/access-token.

Ā 

Create a profile

Using the access token, you can setup a CLI profile for easy access to your account using the command:

$ bns configure profiles add
šŸ“˜

You can have multiple profiles, for different users or different organizations (and same user).

šŸ‘

You can use the profiles to target specific environments also, or projects not just organizations.

Ā 

Using the token inline

You can also pass the token as an option for commands which require authentication, eg:

$ bns environments list --token 123:2664b6ba3d051efdfbb041a54827969b

Did this page help you?