Bunnyshell CLI and Public API
Introduction
Bunnyshell's CLI tool helps you achieve your most common tasks and makes it simple to integrate our platform in your existing flows, such as pipelines, deployment scripts, testing scripts etc. or when you use remote development.
From the CLI tool, you can see and control your Environments:
Clone an Environment
Start/stop an Environment
Deploy an Environment
See the events for an Environment
Delete an Environment
You can also start Remote Development for an environment using the CLI.
Get the Bunnyshell CLI tool
Install using Homebrew
brew install bunnyshellosi/tap/cliDownload from Github Releases
Download the appropriate archive for your architecture on the releases page.
Run in a Docker image
You can also choose to execute it using our provided Docker image:
You can also build your own CLI tool from the following source: https://github.com/bunnyshellosi/cli.
Authentication
You will need your access token, which you can obtain by accessing the URL https://environments.bunnyshell.com/access-token.
Using the access token, you can setup a CLI profile for easy access to your account using the commands listed below:
Create the config file:
bunnyshell-cli configure initSet up the profile:
bunnyshell-cli configure profiles add
You can have multiple profiles, for different users or different organizations (and same user).
Pro tip: You can use the profiles to nail down specific environments also, not just organizations.
Shell Autocomplete
Use the command bunnyshell-cli completion SHELL to generate autocomplete for your current shell.
ZSH
Bash
Using the Bunnyshell CLI
When typing a command in the Bunnyshell CLI, use the following format:
bunnyshell-cli [command]
Available Commands
completion: Generate the autocompletion script for the specified shellcomponents: Bunnyshell Componentsconfigure: Configure CLI settingsenvironments: Bunnyshell Environmentsevents: Bunnyshell Events help Help about any commandorganizations: Bunnyshell Organizationsprojects: Bunnyshell Projectsversion: Version Information
Flags
Use bunnyshell-cli [command] --help for more information about a particular command.
Public API
You can find the documentation for the Bunnyshell Public API here.
The official GO SDK for the Bunnyshell API is available here: https://github.com/bunnyshellosi/go-sdk.
Last updated
Was this helpful?
