@brickblock/bbk-devtools
Brickblock Developer Tools
Last updated 12 days ago by brickblock-dev-team .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @brickblock/bbk-devtools 
SYNC missed versions from official npm registry.

@brickblock/bbk-devtools

Brickblock Developer Tools

oclif Version Downloads/week License

Conventions

Context

The bbk ctx determines your current context. This will set the google cloud project to use and the Kubernetes context to use. Please make sure to set this property before running any further commands.

Group and Project

The Gitlab group and project to be used are determined by the git origin url of the current directory. Please make sure to cd into the correct directory before running commands

Setup

$ npm install -g @brickblock/bbk-devtools
$ bbk COMMAND
running command...
$ bbk (-v|--version|version)
@brickblock/bbk-devtools/0.39.0 linux-x64 node-v10.15.3
$ bbk --help [COMMAND]
USAGE
  $ bbk COMMAND
...

Commands

bbk autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ bbk autocomplete [SHELL]

ARGUMENTS
  SHELL  shell type

OPTIONS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

EXAMPLES
  $ bbk autocomplete
  $ bbk autocomplete bash
  $ bbk autocomplete zsh
  $ bbk autocomplete --refresh-cache

See code: @oclif/plugin-autocomplete

bbk ctx [ENVIRONMENT]

get or set the current context

USAGE
  $ bbk ctx [ENVIRONMENT]

ALIASES
  $ bbk ctx
  $ bbk context

bbk db:get

get information about the database instance, incl. credentials to connect

USAGE
  $ bbk db:get

bbk db:proxy [OPERATION]

start a cloudsql proxy to connect to an instance

USAGE
  $ bbk db:proxy [OPERATION]

ARGUMENTS
  OPERATION  (start|stop) [default: start] start or stop the proxy

OPTIONS
  -p, --port=port  [default: 5432] port to run the proxy on

bbk doctor

check if dependencies are installed

USAGE
  $ bbk doctor

bbk help [COMMAND]

display help for bbk

USAGE
  $ bbk help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

bbk init PACKAGE

Initialize a brickblock project

USAGE
  $ bbk init PACKAGE

ARGUMENTS
  PACKAGE  [default: bbk-devtools] npm package name (will be prefixed with `@brickblock`)

OPTIONS
  -b, --branch=branch                                [default: master] project-templates branch to sync from, defaults
                                                     to 'master'

  -p, --preset=cra|rest-api|library|smart-contracts  preset to use

  --skipBootstrap                                    Skips bootstrapping when migrating repos over to 'bbk init' where
                                                     we don't want to overwrite code in './src'

  --skipHealthcheck                                  Skips the healthcheck after syncing for faster iteration and
                                                     debugging

bbk install

install dependencies

USAGE
  $ bbk install

bbk logs PROJECT

get logs from Kubernetes

USAGE
  $ bbk logs PROJECT

ARGUMENTS
  PROJECT  [default: devops/bbk-devtools] The project to get logs from

OPTIONS
  -a, --all            Show logs from all pods
  -b, --branch=branch  Branch to use (review only)

bbk repl

run in interactive mode

USAGE
  $ bbk repl

bbk secrets:decrypt [CONTEXT]

decrypt a config file

USAGE
  $ bbk secrets:decrypt [CONTEXT]

EXAMPLE
  bbk secrets:decrypt development

bbk secrets:encrypt [CONTEXT]

encrypt a config file

USAGE
  $ bbk secrets:encrypt [CONTEXT]

EXAMPLE
  bbk secrets:encrypt development

bbk secrets:set CONTEXT

Set a value in an encrypted file

USAGE
  $ bbk secrets:set CONTEXT

OPTIONS
  -k, --key=key      (required) Key to set (in Python dict lookup format)
  -v, --value=value  (required) Value to set (JSON)

DESCRIPTION
  Set a value in an encrypted file
  NOTE: the value must be JSON encoded (ie. JSON.stringify(value))

EXAMPLES
  setting a simple value:
  bbk secrets:set production --key '["emailService"]["url"]' --value https://email.staging.brickblock.sh

  setting a complex value:
  bbk secrets:set staging --key '["apis"][2]' --value '{"isGraphQL": false, "target":
  "http://platform-kyc-provider-api.platform:3000/", "path": "/api/id-now-install-sms", "changeOrigin": true, "rewrite":
  {"regex": "/api/", "replacement": "/"} }'

bbk sync

Synchronize latest best practices into your project

USAGE
  $ bbk sync

OPTIONS
  -b, --branch=branch    [default: master] config-templates branch to use

  -i, --init             Will run some initial setup work such as bootstrapping a react app or installing eslint
                         peerDependencies

  -o, --overwrite        Skip the confirm-prompt before overwriting existing files. Useful for initial bootstrap of new
                         repos

  --shouldSyncSrcFolder  We only want to sync files under ./src when bootstrapping a new project via 'bbk init'

  --skipDeps             Allows skipping the automatically triggered 'yarn install' for faster iteration and debugging

  --skipHealthcheck      Allows skipping the healthcheck after syncing for faster iteration and debugging

Current Tags

  • 0.45.1                                ...           latest (12 days ago)

76 Versions

  • 0.45.1                                ...           12 days ago
  • 0.45.0                                ...           24 days ago
  • 0.44.0                                ...           24 days ago
  • 0.43.2                                ...           a month ago
  • 0.43.0                                ...           a month ago
  • 0.42.0                                ...           a month ago
  • 0.41.0                                ...           2 months ago
  • 0.40.0                                ...           2 months ago
  • 0.39.0                                ...           2 months ago
  • 0.38.0                                ...           2 months ago
  • 0.37.1                                ...           2 months ago
  • 0.37.0                                ...           2 months ago
  • 0.36.6                                ...           2 months ago
  • 0.36.5                                ...           2 months ago
  • 0.36.4                                ...           2 months ago
  • 0.36.3                                ...           2 months ago
  • 0.36.2                                ...           2 months ago
  • 0.36.1                                ...           2 months ago
  • 0.36.0                                ...           2 months ago
  • 0.35.0                                ...           2 months ago
  • 0.33.1                                ...           3 months ago
  • 0.33.0                                ...           3 months ago
  • 0.32.3                                ...           3 months ago
  • 0.32.2                                ...           3 months ago
  • 0.32.1                                ...           3 months ago
  • 0.31.1                                ...           3 months ago
  • 0.31.0                                ...           3 months ago
  • 0.30.0                                ...           3 months ago
  • 0.29.0                                ...           3 months ago
  • 0.28.0                                ...           3 months ago
  • 0.27.0                                ...           3 months ago
  • 0.26.0                                ...           3 months ago
  • 0.25.0                                ...           3 months ago
  • 0.24.2                                ...           3 months ago
  • 0.24.1                                ...           3 months ago
  • 0.24.0                                ...           3 months ago
  • 0.23.0                                ...           3 months ago
  • 0.22.1                                ...           3 months ago
  • 0.22.0                                ...           3 months ago
  • 0.21.0                                ...           3 months ago
  • 0.20.1                                ...           3 months ago
  • 0.20.0                                ...           3 months ago
  • 0.19.0                                ...           4 months ago
  • 0.18.0                                ...           4 months ago
  • 0.17.0                                ...           4 months ago
  • 0.16.3                                ...           4 months ago
  • 0.16.2                                ...           4 months ago
  • 0.16.1                                ...           4 months ago
  • 0.16.0                                ...           4 months ago
  • 0.15.0                                ...           4 months ago
  • 0.14.0                                ...           5 months ago
  • 0.13.0                                ...           5 months ago
  • 0.12.0                                ...           5 months ago
  • 0.11.0                                ...           5 months ago
  • 0.10.0                                ...           5 months ago
  • 0.9.0                                ...           5 months ago
  • 0.8.5                                ...           5 months ago
  • 0.8.4                                ...           5 months ago
  • 0.8.3                                ...           5 months ago
  • 0.8.2                                ...           5 months ago
  • 0.8.1                                ...           5 months ago
  • 0.8.0                                ...           5 months ago
  • 0.7.0                                ...           5 months ago
  • 0.6.3                                ...           5 months ago
  • 0.6.2                                ...           5 months ago
  • 0.6.1                                ...           5 months ago
  • 0.6.0                                ...           5 months ago
  • 0.5.1                                ...           5 months ago
  • 0.5.0                                ...           5 months ago
  • 0.4.1                                ...           5 months ago
  • 0.4.0                                ...           5 months ago
  • 0.3.3                                ...           6 months ago
  • 0.3.2                                ...           6 months ago
  • 0.3.0                                ...           6 months ago
  • 0.2.1                                ...           6 months ago
  • 0.2.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 91
Last Day 0
Last Week 76
Last Month 288
Dependencies (38)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |