UNPKG

13.6 kBMarkdownView Raw
1<!-- docs -->
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
20Architect 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
22Our 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
24Architect'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<!-- usage -->
29```sh-session
30$ npm install -g @architect-io/cli
31$ architect COMMAND
32running command...
33$ architect (-v|--version|version)
34@architect-io/cli/0.7.4 linux-x64 node-v12.18.3
35$ architect --help [COMMAND]
36USAGE
37 $ architect COMMAND
38...
39```
40<!-- usagestop -->
41
42_Note: the CLI uses the [keytar](http://atom.github.io/node-keytar/) library to store
43your Architect Cloud credentials securely on your machine. If your OS doesn't support
44keytar (like many linux systems) you will see an install error in the logs during NPM
45install. Keytar is an optional dependency and the install will complete successfully
46despite this error, but [you may hide it](https://github.com/nodejs/node-gyp/issues/1236)
47by running npm install with the `--unsafe` flag._
48
49# Commands
50
51<!-- commands -->
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
74display autocomplete installation instructions
75
76```
77USAGE
78 $ architect autocomplete [SHELL]
79
80ARGUMENTS
81 SHELL shell type
82
83OPTIONS
84 -r, --refresh-cache Refresh cache (ignores displaying instructions)
85
86EXAMPLES
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
97Get the value of a CLI config option
98
99```
100USAGE
101 $ architect config:get OPTION
102
103ARGUMENTS
104 OPTION Name of a config option
105
106OPTIONS
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
114Set a new value for a CLI configuration option
115
116```
117USAGE
118 $ architect config:set OPTION VALUE
119
120ARGUMENTS
121 OPTION Name of a config option
122 VALUE New value to assign to a config option
123
124OPTIONS
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
132View all the CLI configuration settings
133
134```
135USAGE
136 $ architect config:view
137
138OPTIONS
139 -h, --help show CLI help
140
141ALIASES
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
149Create a deploy job on Architect Cloud or run stacks locally
150
151```
152USAGE
153 $ architect deploy ENVIRONMENT_CONFIG_OR_COMPONENT
154
155ARGUMENTS
156 ENVIRONMENT_CONFIG_OR_COMPONENT Path to an environment config file or component `account/component:latest`
157
158OPTIONS
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
180Destroy components from an environment
181
182```
183USAGE
184 $ architect destroy
185
186OPTIONS
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
199Search environments you have access to
200
201```
202USAGE
203 $ architect environments [QUERY]
204
205ARGUMENTS
206 QUERY Search term used to filter the results
207
208OPTIONS
209 -h, --help show CLI help
210
211ALIASES
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
224Register a new environment with Architect Cloud
225
226```
227USAGE
228 $ architect environments:create [ENVIRONMENT]
229
230ARGUMENTS
231 ENVIRONMENT Name to give the environment
232
233OPTIONS
234 -a, --account=account Architect Account
235 -h, --help show CLI help
236 --description=description Environment Description
237 --platform=platform Architect Platform
238
239ALIASES
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
249Destroy an environment
250
251```
252USAGE
253 $ architect environments:destroy [ENVIRONMENT]
254
255ARGUMENTS
256 ENVIRONMENT Name of the environment to destroy
257
258OPTIONS
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
264ALIASES
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
274display help for architect
275
276```
277USAGE
278 $ architect help [COMMAND]
279
280ARGUMENTS
281 COMMAND command to show help for
282
283OPTIONS
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
291Link a local component to the host to be used to power local deployments.
292
293```
294USAGE
295 $ architect link [COMPONENTPATH]
296
297OPTIONS
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
305Login to the Architect Cloud platform
306
307```
308USAGE
309 $ architect login
310
311OPTIONS
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
321Logout from the Architect registry
322
323```
324USAGE
325 $ architect logout
326
327OPTIONS
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
335Search for platforms on Architect Cloud
336
337```
338USAGE
339 $ architect platforms [QUERY]
340
341ARGUMENTS
342 QUERY Search query used to filter results
343
344OPTIONS
345 -h, --help show CLI help
346
347ALIASES
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
358Register a new platform with Architect Cloud
359
360```
361USAGE
362 $ architect platforms:create [PLATFORM]
363
364ARGUMENTS
365 PLATFORM Name to give the platform
366
367OPTIONS
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
379ALIASES
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
388Destroy a platform
389
390```
391USAGE
392 $ architect platforms:destroy [PLATFORM]
393
394ARGUMENTS
395 PLATFORM Name of the platform to destroy
396
397OPTIONS
398 -a, --account=account Architect Account
399 -h, --help show CLI help
400 --auto_approve Automatically apply the changes
401
402ALIASES
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
411Register a new Component with Architect Cloud
412
413```
414USAGE
415 $ architect register [COMPONENT]
416
417ARGUMENTS
418 COMPONENT Path to a component to register
419
420OPTIONS
421 -h, --help show CLI help
422 -t, --tag=tag [default: latest] Tag to give to the new component
423
424ALIASES
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
435Unlink a component from the host by path or name
436
437```
438USAGE
439 $ architect unlink [COMPONENTPATHORNAME]
440
441OPTIONS
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
450Get the logged in user
451
452```
453USAGE
454 $ architect whoami
455
456OPTIONS
457 -h, --help show CLI help
458
459ALIASES
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<!-- commandsstop -->