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.108.0 linux-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 integrations:create`](#bearer-integrationscreate)
|
47 | * [`bearer integrations:list`](#bearer-integrationslist)
|
48 | * [`bearer invoke FUNCTION_NAME`](#bearer-invoke-function-name)
|
49 | * [`bearer link [INTEGRATION_IDENTIFIER]`](#bearer-link-integration-identifier)
|
50 | * [`bearer login`](#bearer-login)
|
51 | * [`bearer new [INTEGRATIONNAME]`](#bearer-new-integrationname)
|
52 | * [`bearer push`](#bearer-push)
|
53 | * [`bearer start`](#bearer-start)
|
54 |
|
55 | ## `bearer autocomplete [SHELL]`
|
56 |
|
57 | display autocomplete installation instructions
|
58 |
|
59 | ```
|
60 | USAGE
|
61 | $ bearer autocomplete [SHELL]
|
62 |
|
63 | ARGUMENTS
|
64 | SHELL shell type
|
65 |
|
66 | OPTIONS
|
67 | -r, --refresh-cache Refresh cache (ignores displaying instructions)
|
68 |
|
69 | EXAMPLES
|
70 | $ bearer autocomplete
|
71 | $ bearer autocomplete bash
|
72 | $ bearer autocomplete zsh
|
73 | $ bearer autocomplete --refresh-cache
|
74 | ```
|
75 |
|
76 | _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.1.0/src/commands/autocomplete/index.ts)_
|
77 |
|
78 | ## `bearer encrypt ENCRYPTIONKEY MESSAGE`
|
79 |
|
80 | Encrypt using bearer security
|
81 |
|
82 | ```
|
83 | USAGE
|
84 | $ bearer encrypt ENCRYPTIONKEY MESSAGE
|
85 |
|
86 | OPTIONS
|
87 | -h, --help show CLI help
|
88 | --path=path
|
89 | --silent
|
90 | ```
|
91 |
|
92 | _See code: [src/commands/encrypt.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/encrypt.ts)_
|
93 |
|
94 | ## `bearer generate`
|
95 |
|
96 | Generate Function or Component
|
97 |
|
98 | ```
|
99 | USAGE
|
100 | $ bearer generate
|
101 |
|
102 | OPTIONS
|
103 | -h, --help show CLI help
|
104 | --path=path
|
105 | --silent
|
106 |
|
107 | ALIASES
|
108 | $ bearer g
|
109 | ```
|
110 |
|
111 | _See code: [src/commands/generate/index.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/generate/index.ts)_
|
112 |
|
113 | ## `bearer generate:component [NAME]`
|
114 |
|
115 | Generate a Bearer component
|
116 |
|
117 | ```
|
118 | USAGE
|
119 | $ bearer generate:component [NAME]
|
120 |
|
121 | OPTIONS
|
122 | -h, --help show CLI help
|
123 | -t, --type=blank|collection|root
|
124 | --path=path
|
125 | --silent
|
126 |
|
127 | ALIASES
|
128 | $ bearer g:c
|
129 | ```
|
130 |
|
131 | _See code: [src/commands/generate/component.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/generate/component.ts)_
|
132 |
|
133 | ## `bearer generate:function [NAME]`
|
134 |
|
135 | Generate a Bearer Function
|
136 |
|
137 | ```
|
138 | USAGE
|
139 | $ bearer generate:function [NAME]
|
140 |
|
141 | OPTIONS
|
142 | -h, --help show CLI help
|
143 | --path=path
|
144 | --silent
|
145 |
|
146 | ALIASES
|
147 | $ bearer g:f
|
148 | ```
|
149 |
|
150 | _See code: [src/commands/generate/function.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/generate/function.ts)_
|
151 |
|
152 | ## `bearer help [COMMAND]`
|
153 |
|
154 | display help for bearer
|
155 |
|
156 | ```
|
157 | USAGE
|
158 | $ bearer help [COMMAND]
|
159 |
|
160 | ARGUMENTS
|
161 | COMMAND command to show help for
|
162 |
|
163 | OPTIONS
|
164 | --all see all commands in CLI
|
165 | ```
|
166 |
|
167 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v2.1.4/src/commands/help.ts)_
|
168 |
|
169 | ## `bearer integrations:create`
|
170 |
|
171 | ```
|
172 | USAGE
|
173 | $ bearer integrations:create
|
174 |
|
175 | OPTIONS
|
176 | -d, --description=description
|
177 | -h, --help show CLI help
|
178 | -l, --skipLink
|
179 | -n, --name=name
|
180 | --path=path
|
181 | --silent
|
182 | ```
|
183 |
|
184 | _See code: [src/commands/integrations/create.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/integrations/create.ts)_
|
185 |
|
186 | ## `bearer integrations:list`
|
187 |
|
188 | ```
|
189 | USAGE
|
190 | $ bearer integrations:list
|
191 |
|
192 | OPTIONS
|
193 | -h, --help show CLI help
|
194 | --path=path
|
195 | --silent
|
196 | ```
|
197 |
|
198 | _See code: [src/commands/integrations/list.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/integrations/list.ts)_
|
199 |
|
200 | ## `bearer invoke FUNCTION_NAME`
|
201 |
|
202 | Invoke Function locally
|
203 |
|
204 | ```
|
205 | USAGE
|
206 | $ bearer invoke FUNCTION_NAME
|
207 |
|
208 | OPTIONS
|
209 | -h, --help show CLI help
|
210 | -p, --path=path
|
211 | ```
|
212 |
|
213 | _See code: [src/commands/invoke.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/invoke.ts)_
|
214 |
|
215 | ## `bearer link [INTEGRATION_IDENTIFIER]`
|
216 |
|
217 | Link your local integration to a remote one
|
218 |
|
219 | ```
|
220 | USAGE
|
221 | $ bearer link [INTEGRATION_IDENTIFIER]
|
222 |
|
223 | OPTIONS
|
224 | -h, --help show CLI help
|
225 | --path=path
|
226 | --silent
|
227 | ```
|
228 |
|
229 | _See code: [src/commands/link.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/link.ts)_
|
230 |
|
231 | ## `bearer login`
|
232 |
|
233 | Login to Bearer platform
|
234 |
|
235 | ```
|
236 | USAGE
|
237 | $ bearer login
|
238 |
|
239 | OPTIONS
|
240 | -h, --help show CLI help
|
241 | --path=path
|
242 | --silent
|
243 | ```
|
244 |
|
245 | _See code: [src/commands/login.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/login.ts)_
|
246 |
|
247 | ## `bearer new [INTEGRATIONNAME]`
|
248 |
|
249 | Generate a new integration
|
250 |
|
251 | ```
|
252 | USAGE
|
253 | $ bearer new [INTEGRATIONNAME]
|
254 |
|
255 | OPTIONS
|
256 | -a, --authType=OAUTH1|OAUTH2|BASIC|APIKEY|NONE|CUSTOM Authorization type
|
257 | -h, --help show CLI help
|
258 | --path=path
|
259 | --silent
|
260 | --withViews
|
261 | ```
|
262 |
|
263 | _See code: [src/commands/new.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/new.ts)_
|
264 |
|
265 | ## `bearer push`
|
266 |
|
267 | Deploy Integration to Bearer Platform
|
268 |
|
269 | ```
|
270 | USAGE
|
271 | $ bearer push
|
272 |
|
273 | OPTIONS
|
274 | -h, --help show CLI help
|
275 | --path=path
|
276 | --silent
|
277 | ```
|
278 |
|
279 | _See code: [src/commands/push.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/push.ts)_
|
280 |
|
281 | ## `bearer start`
|
282 |
|
283 | Start local development environment
|
284 |
|
285 | ```
|
286 | USAGE
|
287 | $ bearer start
|
288 |
|
289 | OPTIONS
|
290 | -h, --help show CLI help
|
291 | --no-install
|
292 | --no-open
|
293 | ```
|
294 |
|
295 | _See code: [src/commands/start.ts](https://github.com/Bearer/bearer/blob/v0.108.0/src/commands/start.ts)_
|
296 |
|