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