Giter VIP home page Giter VIP logo

cli's Introduction

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

Generic Installer

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)" \
;
Env Var DEFAULT Description
DEBUG_INSTALLER false Add set -x for the script
PREFER_BREW false Allow brew installation
INSTALL_PATH . Install path for binary
SUDO_INSTALL false Use sudo when moving binary to INSTALL_PATH

Examples:

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)" \
;

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

cli's People

Contributors

aminalali8 avatar apasare avatar aris-bunnyshell avatar bunnycrlu avatar dependabot[bot] avatar mihaichitic avatar sorinbunnyshell avatar tdensmore avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cli's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.