Code Monkey home page Code Monkey logo

blcli's Introduction

blcli

blcli is a command-line interface for BitLaunch.io

Usage:
  blcli [command]

Available Commands:
  account        Retrieve account information
  create-options View images, sizes, and options available for a host when creating a new server.
  help           Help about any command
  server         Manage your virtual machines
  sshkey         Manage SSH Keys
  transaction    Manage transactions
  version        blcli version

Flags:
      --config string   config file (default is $HOME/.blcli.yaml)
  -h, --help            help for blcli
      --token string    API authentication token

Use "blcli [command] --help" for more information about a command.

Installing blcli

Downloading a Release

Visit the Releases page for the blcli GitHub project.

You can optionally move the blcli binary to your path. For example:

sudo mv ~/blcli /usr/local/bin

Authentication

To use blcli you'll need an API access token. You can generate one in your BitLaunch account API page. More information is available at the developer hub.

Once you have your token, you can either:

  1. Specify it with each request:

blcli --token TOKEN_HERE ...

  1. Set it as an environment variable:

export BL_API_TOKEN=TOKEN_HERE

Examples

Here are a few examples of using blcli. More help is available with blcli [command] -h and further documentation is available at the developer hub

  • List all servers on your account:
blcli server list
  • Create a server:
blcli server create --host bitlaunch --name test --region <region-id> --image <image-id> --size <size-id> --password b1Tl4uNCH!
  • Create a new Lightning Network transaction:
blcli transaction create 20 BTC --lightning
  • View your account and balance
blcli account

blcli's People

Contributors

bitlaunchio avatar

Stargazers

 avatar

Watchers

 avatar

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.