Install the CLI
The code is open source on GitHub.
Generic Install: Manual Download from GitHub Releases
Download the appropriate archive for your architecture on the releases page.
Then extract the archive, (optionally move the binary to a folder in PATH) and run the binary.
macOS: Installing with brew
or the installer.sh
script
brew
or the installer.sh
scriptbrew install bunnyshell/tap/bunnyshell-cli
installer=$(curl --silent https://raw.githubusercontent.com/bunnyshell/cli/master/installer.sh) \
&& [ "33cdd268adb1e26511b0cc90c9f4bf017bb145041677ca52d23a0f93cd13bd58 *stdin" = "$(echo -n "${installer}" | openssl dgst -sha256 -r)" ] \
&& (
sh -c "${installer}" || :
) \
|| echo "Checksum did not match $(echo -n "${installer}" | openssl dgst -sha256 -r)" \
;
installer=$(curl --silent https://raw.githubusercontent.com/bunnyshell/cli/master/installer.sh) \
&& [ "33cdd268adb1e26511b0cc90c9f4bf017bb145041677ca52d23a0f93cd13bd58 *stdin" = "$(echo -n "${installer}" | openssl dgst -sha256 -r)" ] \
&& (
SUDO_INSTALL=true INSTALL_PATH=/usr/local/bin sh -c "${installer}" || :
) \
|| echo "Checksum did not match $(echo -n "${installer}" | openssl dgst -sha256 -r)" \
;
Linux, macOS with installer.sh
script
installer.sh
scriptinstaller=$(curl --silent https://raw.githubusercontent.com/bunnyshell/cli/master/installer.sh) \
&& [ "33cdd268adb1e26511b0cc90c9f4bf017bb145041677ca52d23a0f93cd13bd58 *stdin" = "$(echo -n "${installer}" | openssl dgst -sha256 -r)" ] \
&& (
sh -c "${installer}" || :
) \
|| echo "Checksum did not match $(echo -n "${installer}" | openssl dgst -sha256 -r)" \
;
installer=$(curl --silent https://raw.githubusercontent.com/bunnyshell/cli/master/installer.sh) \
&& [ "33cdd268adb1e26511b0cc90c9f4bf017bb145041677ca52d23a0f93cd13bd58 *stdin" = "$(echo -n "${installer}" | openssl dgst -sha256 -r)" ] \
&& (
SUDO_INSTALL=true INSTALL_PATH=/usr/local/bin sh -c "${installer}" || :
) \
|| echo "Checksum did not match $(echo -n "${installer}" | openssl dgst -sha256 -r)" \
;
Windows:
- Download the executable file from [[https://github.com/bunnyshell/cli/releases]]. You'll need to select the file suited to your architecture:
- bns_[version]_Windows_x86_64.zip (64 bit Windows)
- bns_[version]_Windows_arm64.zip (Windows for ARM)
- bns_[version]_Windows_i386.zip (For 32 bit Windows)
- Extract the archive
- Place the
bns.exe
file in a location of your choice. (For exampleC:\Users\Username\bin
- replaceUsername
with your actual username) - Add the location to your PATH using the command below. ( Replace
C:\Users\Username\bin
with the actual directory where you copied thebns
binary):
setx PATH "%PATH%;C:\Users\Username\bin"
Installing in a Dockerfile
If you need the CLI in your images, we recommend using the one from the official Docker Image.
COPY --from=bunnyshell/cli /usr/bin/bns /usr/bin/bns
Run in a Docker image
You can also choose to execute it using our provided Docker image:
docker run --volume ~/.bunnyshell:/root/.bunnyshell bunnyshell/cli environments list
Next, see how to Authenticate in the CLI.
Updated 2 months ago