1 |
|
2 |
|
3 | <p align="center">
|
4 | <a href="//architect.io" target="blank"><img src="https://www.architect.io/logo.svg" width="480" alt="Architect Logo" /></a>
|
5 | </p>
|
6 |
|
7 | <p align="center">
|
8 | <a href="https://oclif.io"><img src="https://img.shields.io/badge/cli-oclif-brightgreen.svg" alt="oclif" /></a>
|
9 | <a href="https://github.com/architect-team/architect-cli/actions?query=workflow%3A%22CLI+-+Cut+Release+Candidate%22"><img src="https://img.shields.io/github/workflow/status/architect-team/architect-cli/CLI%20-%20Cut%20Release%20Candidate" alt="Build" /></a>
|
10 | <a href="https://npmjs.org/package/@architect-io/cli"><img src="https://img.shields.io/npm/v/@architect-io/cli.svg" alt="Version" /></a>
|
11 | <a href="https://github.com/architect-team/architect-cli/blob/master/package.json"><img src="https://img.shields.io/npm/l/@architect-io/cli.svg" alt="License" /></a>
|
12 | </p>
|
13 |
|
14 | <p align="center">
|
15 | Self-service cloud environments for everyone. Achieve deployment, networking, and security automation all at once with Architect.
|
16 | </p>
|
17 |
|
18 | ---
|
19 |
|
20 | Architect is the world's first [DevOps-as-a-Service](https://www.architect.io/how-it-works) toolset designed to help democratize environment provisioning for engineers. With Architect, anyone can deploy any service, anywhere, for any reason with the push of a button.
|
21 |
|
22 | Our unique approach to continuous delivery is powered by an embedded dependency resolver. By simply asserting your microservice dependenies, Architect is able to build a graph of your application and deploy the entire stack to your favorite cloud provider.
|
23 |
|
24 | Architect's CLI, which provides the full developer experience needed to create [components](https://www.architect.io/docs/getting-started/core-concepts#components) and operate local [environments](https://www.architect.io/docs/getting-started/core-concepts#environments), is fully open-source. The CLI can deploy components locally using docker-compose, enrich the deployments with components found in Architect's Cloud registry, and allows developers to publish their own components to the registry both publicly and privately for free.
|
25 |
|
26 | # Usage
|
27 |
|
28 |
|
29 | ```sh-session
|
30 | $ npm install -g @architect-io/cli
|
31 | $ architect COMMAND
|
32 | running command...
|
33 | $ architect (-v|--version|version)
|
34 | @architect-io/cli/0.7.4 linux-x64 node-v12.18.3
|
35 | $ architect --help [COMMAND]
|
36 | USAGE
|
37 | $ architect COMMAND
|
38 | ...
|
39 | ```
|
40 |
|
41 |
|
42 | _Note: the CLI uses the [keytar](http://atom.github.io/node-keytar/) library to store
|
43 | your Architect Cloud credentials securely on your machine. If your OS doesn't support
|
44 | keytar (like many linux systems) you will see an install error in the logs during NPM
|
45 | install. Keytar is an optional dependency and the install will complete successfully
|
46 | despite this error, but [you may hide it](https://github.com/nodejs/node-gyp/issues/1236)
|
47 | by running npm install with the `--unsafe` flag._
|
48 |
|
49 | # Commands
|
50 |
|
51 |
|
52 | * [`architect autocomplete [SHELL]`](#architect-autocomplete-shell)
|
53 | * [`architect config:get OPTION`](#architect-configget-option)
|
54 | * [`architect config:set OPTION VALUE`](#architect-configset-option-value)
|
55 | * [`architect config:view`](#architect-configview)
|
56 | * [`architect deploy ENVIRONMENT_CONFIG_OR_COMPONENT`](#architect-deploy-environment_config_or_component)
|
57 | * [`architect destroy`](#architect-destroy)
|
58 | * [`architect environments [QUERY]`](#architect-environments-query)
|
59 | * [`architect environments:create [ENVIRONMENT]`](#architect-environmentscreate-environment)
|
60 | * [`architect environments:destroy [ENVIRONMENT]`](#architect-environmentsdestroy-environment)
|
61 | * [`architect help [COMMAND]`](#architect-help-command)
|
62 | * [`architect link [COMPONENTPATH]`](#architect-link-componentpath)
|
63 | * [`architect login`](#architect-login)
|
64 | * [`architect logout`](#architect-logout)
|
65 | * [`architect platforms [QUERY]`](#architect-platforms-query)
|
66 | * [`architect platforms:create [PLATFORM]`](#architect-platformscreate-platform)
|
67 | * [`architect platforms:destroy [PLATFORM]`](#architect-platformsdestroy-platform)
|
68 | * [`architect register [COMPONENT]`](#architect-register-component)
|
69 | * [`architect unlink [COMPONENTPATHORNAME]`](#architect-unlink-componentpathorname)
|
70 | * [`architect whoami`](#architect-whoami)
|
71 |
|
72 | ## `architect autocomplete [SHELL]`
|
73 |
|
74 | display autocomplete installation instructions
|
75 |
|
76 | ```
|
77 | USAGE
|
78 | $ architect autocomplete [SHELL]
|
79 |
|
80 | ARGUMENTS
|
81 | SHELL shell type
|
82 |
|
83 | OPTIONS
|
84 | -r, --refresh-cache Refresh cache (ignores displaying instructions)
|
85 |
|
86 | EXAMPLES
|
87 | $ architect autocomplete
|
88 | $ architect autocomplete bash
|
89 | $ architect autocomplete zsh
|
90 | $ architect autocomplete --refresh-cache
|
91 | ```
|
92 |
|
93 | _See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v0.2.0/src/commands/autocomplete/index.ts)_
|
94 |
|
95 | ## `architect config:get OPTION`
|
96 |
|
97 | Get the value of a CLI config option
|
98 |
|
99 | ```
|
100 | USAGE
|
101 | $ architect config:get OPTION
|
102 |
|
103 | ARGUMENTS
|
104 | OPTION Name of a config option
|
105 |
|
106 | OPTIONS
|
107 | -h, --help show CLI help
|
108 | ```
|
109 |
|
110 | _See code: [src/commands/config/get.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/config/get.ts)_
|
111 |
|
112 | ## `architect config:set OPTION VALUE`
|
113 |
|
114 | Set a new value for a CLI configuration option
|
115 |
|
116 | ```
|
117 | USAGE
|
118 | $ architect config:set OPTION VALUE
|
119 |
|
120 | ARGUMENTS
|
121 | OPTION Name of a config option
|
122 | VALUE New value to assign to a config option
|
123 |
|
124 | OPTIONS
|
125 | -h, --help show CLI help
|
126 | ```
|
127 |
|
128 | _See code: [src/commands/config/set.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/config/set.ts)_
|
129 |
|
130 | ## `architect config:view`
|
131 |
|
132 | View all the CLI configuration settings
|
133 |
|
134 | ```
|
135 | USAGE
|
136 | $ architect config:view
|
137 |
|
138 | OPTIONS
|
139 | -h, --help show CLI help
|
140 |
|
141 | ALIASES
|
142 | $ architect config
|
143 | ```
|
144 |
|
145 | _See code: [src/commands/config/view.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/config/view.ts)_
|
146 |
|
147 | ## `architect deploy ENVIRONMENT_CONFIG_OR_COMPONENT`
|
148 |
|
149 | Create a deploy job on Architect Cloud or run stacks locally
|
150 |
|
151 | ```
|
152 | USAGE
|
153 | $ architect deploy ENVIRONMENT_CONFIG_OR_COMPONENT
|
154 |
|
155 | ARGUMENTS
|
156 | ENVIRONMENT_CONFIG_OR_COMPONENT Path to an environment config file or component `account/component:latest`
|
157 |
|
158 | OPTIONS
|
159 | -a, --account=account Architect Account
|
160 | -d, --detached Run in detached mode
|
161 | -e, --environment=environment Architect Environment
|
162 | -h, --help show CLI help
|
163 | -i, --interface=interface [default: ] Component interfaces
|
164 | -l, --local Deploy the stack locally instead of via Architect Cloud
|
165 |
|
166 | -o, --compose_file=compose_file [default: /tmp/architect-deployment-1599759397262.yml] Path where the compose file
|
167 | should be written to
|
168 |
|
169 | -p, --parameter=parameter [default: ] Component parameters
|
170 |
|
171 | --auto_approve
|
172 |
|
173 | --[no-]browser
|
174 | ```
|
175 |
|
176 | _See code: [src/commands/deploy.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/deploy.ts)_
|
177 |
|
178 | ## `architect destroy`
|
179 |
|
180 | Destroy components from an environment
|
181 |
|
182 | ```
|
183 | USAGE
|
184 | $ architect destroy
|
185 |
|
186 | OPTIONS
|
187 | -a, --account=account Architect Account
|
188 | -c, --components=components Component(s) to destroy
|
189 | -e, --environment=environment Architect Environment
|
190 | -h, --help show CLI help
|
191 | --auto_approve
|
192 | --[no-]browser
|
193 | ```
|
194 |
|
195 | _See code: [src/commands/destroy.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/destroy.ts)_
|
196 |
|
197 | ## `architect environments [QUERY]`
|
198 |
|
199 | Search environments you have access to
|
200 |
|
201 | ```
|
202 | USAGE
|
203 | $ architect environments [QUERY]
|
204 |
|
205 | ARGUMENTS
|
206 | QUERY Search term used to filter the results
|
207 |
|
208 | OPTIONS
|
209 | -h, --help show CLI help
|
210 |
|
211 | ALIASES
|
212 | $ architect environments
|
213 | $ architect envs
|
214 | $ architect env
|
215 | $ architect environments:search
|
216 | $ architect envs:search
|
217 | $ architect env:search
|
218 | ```
|
219 |
|
220 | _See code: [src/commands/environments/index.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/environments/index.ts)_
|
221 |
|
222 | ## `architect environments:create [ENVIRONMENT]`
|
223 |
|
224 | Register a new environment with Architect Cloud
|
225 |
|
226 | ```
|
227 | USAGE
|
228 | $ architect environments:create [ENVIRONMENT]
|
229 |
|
230 | ARGUMENTS
|
231 | ENVIRONMENT Name to give the environment
|
232 |
|
233 | OPTIONS
|
234 | -a, --account=account Architect Account
|
235 | -h, --help show CLI help
|
236 | --description=description Environment Description
|
237 | --platform=platform Architect Platform
|
238 |
|
239 | ALIASES
|
240 | $ architect environment:create
|
241 | $ architect envs:create
|
242 | $ architect env:create
|
243 | ```
|
244 |
|
245 | _See code: [src/commands/environments/create.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/environments/create.ts)_
|
246 |
|
247 | ## `architect environments:destroy [ENVIRONMENT]`
|
248 |
|
249 | Destroy an environment
|
250 |
|
251 | ```
|
252 | USAGE
|
253 | $ architect environments:destroy [ENVIRONMENT]
|
254 |
|
255 | ARGUMENTS
|
256 | ENVIRONMENT Name of the environment to destroy
|
257 |
|
258 | OPTIONS
|
259 | -a, --account=account Architect Account
|
260 | -f, --force Force the deletion even if the environment is not empty
|
261 | -h, --help show CLI help
|
262 | --auto_approve Automatically apply the changes
|
263 |
|
264 | ALIASES
|
265 | $ architect environment:destroy
|
266 | $ architect envs:destroy
|
267 | $ architect env:destroy
|
268 | ```
|
269 |
|
270 | _See code: [src/commands/environments/destroy.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/environments/destroy.ts)_
|
271 |
|
272 | ## `architect help [COMMAND]`
|
273 |
|
274 | display help for architect
|
275 |
|
276 | ```
|
277 | USAGE
|
278 | $ architect help [COMMAND]
|
279 |
|
280 | ARGUMENTS
|
281 | COMMAND command to show help for
|
282 |
|
283 | OPTIONS
|
284 | --all see all commands in CLI
|
285 | ```
|
286 |
|
287 | _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v3.1.0/src/commands/help.ts)_
|
288 |
|
289 | ## `architect link [COMPONENTPATH]`
|
290 |
|
291 | Link a local component to the host to be used to power local deployments.
|
292 |
|
293 | ```
|
294 | USAGE
|
295 | $ architect link [COMPONENTPATH]
|
296 |
|
297 | OPTIONS
|
298 | -h, --help show CLI help
|
299 | ```
|
300 |
|
301 | _See code: [src/commands/link.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/link.ts)_
|
302 |
|
303 | ## `architect login`
|
304 |
|
305 | Login to the Architect Cloud platform
|
306 |
|
307 | ```
|
308 | USAGE
|
309 | $ architect login
|
310 |
|
311 | OPTIONS
|
312 | -e, --email=email Email
|
313 | -h, --help show CLI help
|
314 | -p, --password=password Password
|
315 | ```
|
316 |
|
317 | _See code: [src/commands/login.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/login.ts)_
|
318 |
|
319 | ## `architect logout`
|
320 |
|
321 | Logout from the Architect registry
|
322 |
|
323 | ```
|
324 | USAGE
|
325 | $ architect logout
|
326 |
|
327 | OPTIONS
|
328 | -h, --help show CLI help
|
329 | ```
|
330 |
|
331 | _See code: [src/commands/logout.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/logout.ts)_
|
332 |
|
333 | ## `architect platforms [QUERY]`
|
334 |
|
335 | Search for platforms on Architect Cloud
|
336 |
|
337 | ```
|
338 | USAGE
|
339 | $ architect platforms [QUERY]
|
340 |
|
341 | ARGUMENTS
|
342 | QUERY Search query used to filter results
|
343 |
|
344 | OPTIONS
|
345 | -h, --help show CLI help
|
346 |
|
347 | ALIASES
|
348 | $ architect platform
|
349 | $ architect platform:search
|
350 | $ architect platforms
|
351 | $ architect platforms:search
|
352 | ```
|
353 |
|
354 | _See code: [src/commands/platforms/index.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/platforms/index.ts)_
|
355 |
|
356 | ## `architect platforms:create [PLATFORM]`
|
357 |
|
358 | Register a new platform with Architect Cloud
|
359 |
|
360 | ```
|
361 | USAGE
|
362 | $ architect platforms:create [PLATFORM]
|
363 |
|
364 | ARGUMENTS
|
365 | PLATFORM Name to give the platform
|
366 |
|
367 | OPTIONS
|
368 | -a, --account=account Architect Account
|
369 | -h, --help show CLI help
|
370 | -h, --host=host
|
371 | -k, --kubeconfig=kubeconfig [default: ~/.kube/config]
|
372 | -t, --type=KUBERNETES|kubernetes|ARCHITECT|architect|ECS|ecs
|
373 | --aws_key=aws_key
|
374 | --aws_region=aws_region
|
375 | --aws_secret=aws_secret
|
376 | --cluster_ca_cert=cluster_ca_cert File path of cluster_ca_cert
|
377 | --service_token=service_token Service token
|
378 |
|
379 | ALIASES
|
380 | $ architect platform:create
|
381 | $ architect platforms:create
|
382 | ```
|
383 |
|
384 | _See code: [src/commands/platforms/create.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/platforms/create.ts)_
|
385 |
|
386 | ## `architect platforms:destroy [PLATFORM]`
|
387 |
|
388 | Destroy a platform
|
389 |
|
390 | ```
|
391 | USAGE
|
392 | $ architect platforms:destroy [PLATFORM]
|
393 |
|
394 | ARGUMENTS
|
395 | PLATFORM Name of the platform to destroy
|
396 |
|
397 | OPTIONS
|
398 | -a, --account=account Architect Account
|
399 | -h, --help show CLI help
|
400 | --auto_approve Automatically apply the changes
|
401 |
|
402 | ALIASES
|
403 | $ architect platform:destroy
|
404 | $ architect platforms:destroy
|
405 | ```
|
406 |
|
407 | _See code: [src/commands/platforms/destroy.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/platforms/destroy.ts)_
|
408 |
|
409 | ## `architect register [COMPONENT]`
|
410 |
|
411 | Register a new Component with Architect Cloud
|
412 |
|
413 | ```
|
414 | USAGE
|
415 | $ architect register [COMPONENT]
|
416 |
|
417 | ARGUMENTS
|
418 | COMPONENT Path to a component to register
|
419 |
|
420 | OPTIONS
|
421 | -h, --help show CLI help
|
422 | -t, --tag=tag [default: latest] Tag to give to the new component
|
423 |
|
424 | ALIASES
|
425 | $ architect component:register
|
426 | $ architect components:register
|
427 | $ architect c:register
|
428 | $ architect comp:register
|
429 | ```
|
430 |
|
431 | _See code: [src/commands/register.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/register.ts)_
|
432 |
|
433 | ## `architect unlink [COMPONENTPATHORNAME]`
|
434 |
|
435 | Unlink a component from the host by path or name
|
436 |
|
437 | ```
|
438 | USAGE
|
439 | $ architect unlink [COMPONENTPATHORNAME]
|
440 |
|
441 | OPTIONS
|
442 | -h, --help show CLI help
|
443 | --all Unlink all components registered locally
|
444 | ```
|
445 |
|
446 | _See code: [src/commands/unlink.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/unlink.ts)_
|
447 |
|
448 | ## `architect whoami`
|
449 |
|
450 | Get the logged in user
|
451 |
|
452 | ```
|
453 | USAGE
|
454 | $ architect whoami
|
455 |
|
456 | OPTIONS
|
457 | -h, --help show CLI help
|
458 |
|
459 | ALIASES
|
460 | $ architect whoami
|
461 | ```
|
462 |
|
463 | _See code: [src/commands/whoami.ts](https://github.com/architect-team/architect-cli/blob/v0.7.4/src/commands/whoami.ts)_
|
464 |
|