Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @bearer/cli with all npm packages installed. Try it out:

var cli = require("@bearer/cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@bearer/cli v1.13.9

Bearer CLI

@bearer/cli

Bearer CLI

oclif Version node (scoped) npm bundle size (scoped) Downloads/week License

* [@bearer/cli](#bearercli) * [Usage](#usage) * [Commands](#commands)

Usage

```sh-session $ npm install -g @bearer/cli $ bearer COMMAND running command... $ bearer (-v|--version|version) @bearer/cli/1.13.9 darwin-x64 node-v10.15.3 $ bearer --help [COMMAND] USAGE $ bearer COMMAND ... ```

Commands

* [`bearer autocomplete [SHELL]`](#bearer-autocomplete-shell) * [`bearer generate`](#bearer-generate) * [`bearer generate:component [NAME]`](#bearer-generatecomponent-name) * [`bearer generate:function [NAME]`](#bearer-generatefunction-name) * [`bearer help [COMMAND]`](#bearer-help-command) * [`bearer integrations`](#bearer-integrations) * [`bearer integrations:create`](#bearer-integrationscreate) * [`bearer invoke FUNCTION_NAME`](#bearer-invoke-function_name) * [`bearer link [INTEGRATION_IDENTIFIER]`](#bearer-link-integration_identifier) * [`bearer login`](#bearer-login) * [`bearer new [INTEGRATIONNAME]`](#bearer-new-integrationname) * [`bearer push`](#bearer-push) * [`bearer setup:auth [CREDENTIALS]`](#bearer-setupauth-credentials) * [`bearer start`](#bearer-start)

bearer autocomplete [SHELL]

display autocomplete installation instructions

USAGE
  $ bearer autocomplete [SHELL]

ARGUMENTS
  SHELL  shell type

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

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

See code: @oclif/plugin-autocomplete

bearer generate

generate function

USAGE
  $ bearer generate

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

ALIASES
  $ bearer g

See code: src/commands/generate/index.ts

bearer generate:component [NAME]

Generate a Bearer component

USAGE
  $ bearer generate:component [NAME]

OPTIONS
  -h, --help                        show CLI help
  -t, --type=blank|collection|root
  --path=path
  --silent

ALIASES
  $ bearer g:c

See code: src/commands/generate/component.ts

bearer generate:function [NAME]

Generate a Bearer Function

USAGE
  $ bearer generate:function [NAME]

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

ALIASES
  $ bearer g:f

See code: src/commands/generate/function.ts

bearer help [COMMAND]

display help for bearer

USAGE
  $ bearer help [COMMAND]

ARGUMENTS
  COMMAND  command to show help for

OPTIONS
  --all  see all commands in CLI

See code: @oclif/plugin-help

bearer integrations

list deployed integrations

USAGE
  $ bearer integrations

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

See code: src/commands/integrations/index.ts

bearer integrations:create

create a new Integration

USAGE
  $ bearer integrations:create

OPTIONS
  -d, --description=description
  -h, --help                     show CLI help
  -l, --skipLink
  -n, --name=name
  --path=path
  --silent

See code: src/commands/integrations/create.ts

bearer invoke FUNCTION_NAME

invoke function locally

USAGE
  $ bearer invoke FUNCTION_NAME

OPTIONS
  -d, --data=data
  -f, --file=file
  -h, --help       show CLI help
  --path=path
  --silent

See code: src/commands/invoke.ts

bearer link [INTEGRATION_IDENTIFIER]

link to remote Bearer integration

USAGE
  $ bearer link [INTEGRATION_IDENTIFIER]

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

See code: src/commands/link.ts

bearer login

login using Bearer credentials

USAGE
  $ bearer login

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

See code: src/commands/login.ts

bearer new [INTEGRATIONNAME]

generate integration boilerplate

USAGE
  $ bearer new [INTEGRATIONNAME]

OPTIONS
  -a, --authType=OAUTH1|OAUTH2|BASIC|APIKEY|NONE|CUSTOM  Authorization type
  -d, --directory=directory                              Select a directory as source of the integration
  -f, --force                                            Force copying files
  -h, --help                                             show CLI help
  -t, --template=template                                Generate an integration from a template (git url)
  --path=path
  --silent
  --withViews                                            Experimental - generate views

See code: src/commands/new.ts

bearer push

deploy integration to Bearer

USAGE
  $ bearer push

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

See code: src/commands/push.ts

bearer setup:auth [CREDENTIALS]

setup API credentials for local development.

USAGE
  $ bearer setup:auth [CREDENTIALS]

ARGUMENTS
  CREDENTIALS  Provide inline credentials

OPTIONS
  -h, --help   show CLI help
  --path=path
  --silent

DESCRIPTION
  If you would like to bypass the prompt, you can either:
    * pass credentials as argument (see description later)
    * use environment variables
  see examples

EXAMPLES
  With argument
    bearer setup:auth CLIENT_ID:CLIENT_SECRET
    bearer setup:auth CONSUMER_KEY:CONSUMER_SECRET
    bearer setup:auth USERNAME:PASSWORD
    bearer setup:auth APIKEY
  With environment variables
    BEARER_AUTH_CLIENT_ID=CLIENT_ID BEARER_AUTH_CLIENT_SECRET=CLIENT_SECRET bearer setup:auth
    BEARER_AUTH_CONSUMER_KEY=CONSUMER_KEY BEARER_AUTH_CONSUMER_SECRET=CONSUMER_SECRET bearer setup:auth
    BEARER_AUTH_USERNAME=USERNAME BEARER_AUTH_CONSUMER_SECRET=PASSWORD bearer setup:auth
    BEARER_AUTH_APIKEY=APIKEY bearer setup:auth

See code: src/commands/setup/auth.ts

bearer start

start local development environment

USAGE
  $ bearer start

OPTIONS
  -f, --force   Start using random available port
  -h, --help    show CLI help
  --no-install
  --no-open

See code: src/commands/start.ts

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free