0.1.4 • Published 5 years ago

bb-cl v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
5 years ago

bb

bb is a command line utility to manage bb cloud

Get Started

$ npm install -g bb-cl # with sudo on linux

This installs the bb command. Test it with:

$ bb common --server-version
# Server version: x.y.z

commands

signup

$ bb signup --username="user" --password="correcthorsebatterystaple" --email="my_email_addr@bakir.io"
# ...

login

$ bb login --username="user" --password="correcthorsebatterystaple"
# capability

Also updates ~/.bb/token.cap for future requests.

token-info

$ bb common --token-info
# token info

Useful for checking the validity and capabilities of your token.

user info

$ bb user --info --id=1
# information about user #1

You can only query your own user at the moment

get gateway ip

$ bb gw --get-ip --id=4
# ip address of gateway #4

create gateway

$ bb gw --new --org=org_name --name=gw_name
{
  result: 'success',
  id: N,
  token: 'token_for_gateway_N'
}

global flags

--nocap

Disables loading the default token from ~/.bb/token.cap

--cap=path

Loads and uses the capability token from the given file

--verbose

Logs all requests made by bb

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago