1 | # @bearer/cli
|
2 |
|
3 | Bearer CLI
|
4 |
|
5 | [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
|
6 | [![Version](https://img.shields.io/npm/v/@bearer/cli.svg)](https://npmjs.org/package/@bearer/cli)
|
7 |
|
8 | [![CircleCI](https://circleci.com/gh/Bearer/bearer/packages/cli/tree/master.svg?style=shield)](https://circleci.com/gh/Bearer/bearer/packages/cli/tree/master)
|
9 |
|
10 | [![Appveyor CI](https://ci.appveyor.com/api/projects/status/github/Bearer/bearer/packages/cli?branch=master&svg=true)](https://ci.appveyor.com/project/Bearer/bearer/packages/cli/branch/master)
|
11 | [![Codecov](https://codecov.io/gh/Bearer/bearer/packages/cli/branch/master/graph/badge.svg)](https://codecov.io/gh/Bearer/bearer/packages/cli)
|
12 | [![Downloads/week](https://img.shields.io/npm/dw/@bearer/cli.svg)](https://npmjs.org/package/@bearer/cli)
|
13 | [![License](https://img.shields.io/npm/l/@bearer/cli.svg)](https://github.com/Bearer/bearer/packages/cli/blob/master/package.json)
|
14 |
|
15 |
|
16 | * [@bearer/cli](#bearer-cli)
|
17 | * [Usage](#usage)
|
18 | * [Commands](#commands)
|
19 |
|
20 |
|
21 | # Usage
|
22 |
|
23 |
|
24 | ```sh-session
|
25 | $ npm install -g @bearer/cli
|
26 | $ bearer COMMAND
|
27 | running command...
|
28 | $ bearer (-v|--version|version)
|
29 | @bearer/cli/0.106.0-canary.5+731e302f darwin-x64 node-v10.15.3
|
30 | $ bearer --help [COMMAND]
|
31 | USAGE
|
32 | $ bearer COMMAND
|
33 | ...
|
34 | ```
|
35 |
|
36 |
|
37 | # Commands
|
38 |
|
39 |
|
40 | * [`bearer autocomplete [SHELL]`](#bearer-autocomplete-shell)
|
41 | * [`bearer encrypt ENCRYPTIONKEY MESSAGE`](#bearer-encrypt-encryptionkey-message)
|
42 | * [`bearer generate`](#bearer-generate)
|
43 | * [`bearer generate:component [NAME]`](#bearer-generatecomponent-name)
|
44 | * [`bearer generate:function [NAME]`](#bearer-generatefunction-name)
|
45 | * [`bearer help [COMMAND]`](#bearer-help-command)
|
46 | * [`bearer invoke FUNCTION_NAME`](#bearer-invoke-function-name)
|
47 | * [`bearer link INTEGRATION_IDENTIFIER`](#bearer-link-integration-identifier)
|
48 | * [`bearer login`](#bearer-login)
|
49 | * [`bearer new [INTEGRATIONNAME]`](#bearer-new-integrationname)
|
50 | * [`bearer push`](#bearer-push)
|
51 | * [`bearer start`](#bearer-start)
|
52 |
|
53 | ## `bearer autocomplete [SHELL]`
|
54 |
|
55 | display autocomplete installation instructions
|
56 |
|
57 | ```
|
58 | USAGE
|
59 | $ bearer autocomplete [SHELL]
|
60 |
|
61 | ARGUMENTS
|
62 | SHELL shell type
|
63 |
|
64 | OPTIONS
|
65 | -r, --refresh-cache Refresh cache (ignores displaying instructions)
|
66 |
|
67 | EXAMPLES
|
68 | $ bearer autocomplete
|
69 | $ bearer autocomplete bash
|
70 | $ bearer autocomplete zsh
|
71 | $ bearer autocomplete --refresh-cache
|
72 | ```
|
73 |
|
74 | _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.1.0/src/commands/autocomplete/index.ts)_
|
75 |
|
76 | ## `bearer encrypt ENCRYPTIONKEY MESSAGE`
|
77 |
|
78 | Encrypt using bearer security
|
79 |
|
80 | ```
|
81 | USAGE
|
82 | $ bearer encrypt ENCRYPTIONKEY MESSAGE
|
83 |
|
84 | OPTIONS
|
85 | -h, --help show CLI help
|
86 | --path=path
|
87 | --silent
|
88 | ```
|
89 |
|
90 | _See code: [src/commands/encrypt.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/encrypt.ts)_
|
91 |
|
92 | ## `bearer generate`
|
93 |
|
94 | Generate Function or Component
|
95 |
|
96 | ```
|
97 | USAGE
|
98 | $ bearer generate
|
99 |
|
100 | OPTIONS
|
101 | -h, --help show CLI help
|
102 | --path=path
|
103 | --silent
|
104 |
|
105 | ALIASES
|
106 | $ bearer g
|
107 | ```
|
108 |
|
109 | _See code: [src/commands/generate/index.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/generate/index.ts)_
|
110 |
|
111 | ## `bearer generate:component [NAME]`
|
112 |
|
113 | Generate a Bearer component
|
114 |
|
115 | ```
|
116 | USAGE
|
117 | $ bearer generate:component [NAME]
|
118 |
|
119 | OPTIONS
|
120 | -h, --help show CLI help
|
121 | -t, --type=blank|collection|root
|
122 | --path=path
|
123 | --silent
|
124 |
|
125 | ALIASES
|
126 | $ bearer g:c
|
127 | ```
|
128 |
|
129 | _See code: [src/commands/generate/component.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/generate/component.ts)_
|
130 |
|
131 | ## `bearer generate:function [NAME]`
|
132 |
|
133 | Generate a Bearer Function
|
134 |
|
135 | ```
|
136 | USAGE
|
137 | $ bearer generate:function [NAME]
|
138 |
|
139 | OPTIONS
|
140 | -h, --help show CLI help
|
141 | --path=path
|
142 | --silent
|
143 |
|
144 | ALIASES
|
145 | $ bearer g:f
|
146 | ```
|
147 |
|
148 | _See code: [src/commands/generate/function.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/generate/function.ts)_
|
149 |
|
150 | ## `bearer help [COMMAND]`
|
151 |
|
152 | display help for bearer
|
153 |
|
154 | ```
|
155 | USAGE
|
156 | $ bearer help [COMMAND]
|
157 |
|
158 | ARGUMENTS
|
159 | COMMAND command to show help for
|
160 |
|
161 | OPTIONS
|
162 | --all see all commands in CLI
|
163 | ```
|
164 |
|
165 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.4/src/commands/help.ts)_
|
166 |
|
167 | ## `bearer invoke FUNCTION_NAME`
|
168 |
|
169 | Invoke Function locally
|
170 |
|
171 | ```
|
172 | USAGE
|
173 | $ bearer invoke FUNCTION_NAME
|
174 |
|
175 | OPTIONS
|
176 | -h, --help show CLI help
|
177 | -p, --path=path
|
178 | ```
|
179 |
|
180 | _See code: [src/commands/invoke.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/invoke.ts)_
|
181 |
|
182 | ## `bearer link INTEGRATION_IDENTIFIER`
|
183 |
|
184 | Link your local integration to a remote one
|
185 |
|
186 | ```
|
187 | USAGE
|
188 | $ bearer link INTEGRATION_IDENTIFIER
|
189 |
|
190 | OPTIONS
|
191 | -h, --help show CLI help
|
192 | --path=path
|
193 | --silent
|
194 | ```
|
195 |
|
196 | _See code: [src/commands/link.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/link.ts)_
|
197 |
|
198 | ## `bearer login`
|
199 |
|
200 | Login to Bearer platform
|
201 |
|
202 | ```
|
203 | USAGE
|
204 | $ bearer login
|
205 |
|
206 | OPTIONS
|
207 | -e, --email=email
|
208 | -h, --help show CLI help
|
209 | --path=path
|
210 | --silent
|
211 | ```
|
212 |
|
213 | _See code: [src/commands/login.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/login.ts)_
|
214 |
|
215 | ## `bearer new [INTEGRATIONNAME]`
|
216 |
|
217 | Generate a new integration
|
218 |
|
219 | ```
|
220 | USAGE
|
221 | $ bearer new [INTEGRATIONNAME]
|
222 |
|
223 | OPTIONS
|
224 | -a, --authType=OAUTH1|OAUTH2|BASIC|APIKEY|NONE Authorization type
|
225 | -h, --help show CLI help
|
226 | --path=path
|
227 | --silent
|
228 | ```
|
229 |
|
230 | _See code: [src/commands/new.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/new.ts)_
|
231 |
|
232 | ## `bearer push`
|
233 |
|
234 | Deploy Integration to Bearer Platform
|
235 |
|
236 | ```
|
237 | USAGE
|
238 | $ bearer push
|
239 |
|
240 | OPTIONS
|
241 | -h, --help show CLI help
|
242 | --path=path
|
243 | --silent
|
244 | ```
|
245 |
|
246 | _See code: [src/commands/push.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/push.ts)_
|
247 |
|
248 | ## `bearer start`
|
249 |
|
250 | Start local development environment
|
251 |
|
252 | ```
|
253 | USAGE
|
254 | $ bearer start
|
255 |
|
256 | OPTIONS
|
257 | -h, --help show CLI help
|
258 | --no-install
|
259 | --no-open
|
260 | ```
|
261 |
|
262 | _See code: [src/commands/start.ts](https://github.com/Bearer/bearer/blob/v0.106.0-canary.5+731e302f/src/commands/start.ts)_
|
263 |
|