Bunnyshell CLI helps you manage environments in Bunnyshell and enable Remote Development.
Usage:
bns [command]
Commands for Bunnyshell Resources:
components Components
environments Environments
events Events
k8s-clusters Kubernetes Cluster Integrations
organizations Organizations
pipeline Pipeline
projects Projects
variables Environment Variables
Commands for Utilities:
git Git Operations
port-forward Port Forward
remote-development Remote Development
Commands for CLI:
completion Generate the autocompletion script for the specified shell
configure Configure CLI settings
help Help about any command
version Version Information
Flags:
--configFile string Bunnyshell CLI Config File (default "$HOME/.bunnyshell/config.yaml")
-d, --debug Debug network requests
-h, --help Help for bns
--no-progress Disable progress spinners
--non-interactive Disable interactive terminal
-o, --output string Output format: stylish | json | yaml (default "stylish")
--profile string Use profile from config file
-v, --verbose count Increase log verbosity
--version version for bns
Use "bns [command] --help" for more information about a command.
Installing
Homebrew
brew install bunnyshell/tap/bunnyshell-cli
Download Github Release
Download the appropriate archive for your architecture on the releases page
And make it available in your $PATH
or move the binary to /usr/local/bin
Docker Hub
All the releases are found on: https://hub.docker.com/r/bunnyshell/cli
docker run --volume ~/.bunnyshell:/root/.bunnyshell bunnyshell/cli environments list
Authentication
You will need an access token from https://environments.bunnyshell.com/access-token
You can then setup a profile for easy access to your acccount with:
bns configure profiles add
Shell Autocomplete
Using bns completion SHELL
you can generate autocomplete for your current shell.
ZSH
echo 'source <(bns completion zsh)' >> ~/.zshrc
echo 'compdef _bns bns' >> ~/.zshrc
Bash
echo 'source <(bns completion bash)' >> ~/.bashrc