Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/architect-team/architect-cli
Command line interface for running Architect services locally
https://github.com/architect-team/architect-cli
Last synced: 3 months ago
JSON representation
Command line interface for running Architect services locally
- Host: GitHub
- URL: https://github.com/architect-team/architect-cli
- Owner: architect-team
- Created: 2019-01-28T20:32:18.000Z (almost 6 years ago)
- Default Branch: rc
- Last Pushed: 2023-10-19T17:15:00.000Z (about 1 year ago)
- Last Synced: 2024-07-19T08:16:37.415Z (4 months ago)
- Language: TypeScript
- Homepage: https://docs.architect.io
- Size: 278 MB
- Stars: 37
- Watchers: 5
- Forks: 13
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
Self-service cloud environments for everyone. Achieve deployment, networking, and security automation all at once with Architect.---
Architect is the world's first [DevOps-as-a-Service](https://architect.io/product) 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.
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.
Architect's CLI, which provides the full developer experience needed to create [components](https://docs.architect.io) and operate local [environments](https://docs.architect.io/deployments/local-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.
## Requirements
* [**Docker**](https://docs.docker.com/get-docker/) must be installed
* [**Node.js** `v14`](https://nodejs.org/en/download/) or higher must be installed## Usage
```sh-session
$ npm install -g @architect-io/cli
$ architect COMMAND
running command...
$ architect (--version)
@architect-io/cli/1.44.1-rc.1 linux-x64 node-v16.20.2
$ architect --help [COMMAND]
USAGE
$ architect COMMAND
...
```## Commands
* [`architect autocomplete [SHELL]`](#architect-autocomplete-shell)
* [`architect clusters [QUERY]`](#architect-clusters-query)
* [`architect clusters:create [CLUSTER]`](#architect-clusterscreate-cluster)
* [`architect clusters:destroy [CLUSTER]`](#architect-clustersdestroy-cluster)
* [`architect components:versions [COMPONENT_NAME]`](#architect-componentsversions-component_name)
* [`architect config:get OPTION`](#architect-configget-option)
* [`architect config:set OPTION VALUE`](#architect-configset-option-value)
* [`architect config:view`](#architect-configview)
* [`architect deploy [CONFIGS_OR_COMPONENTS]`](#architect-deploy-configs_or_components)
* [`architect destroy`](#architect-destroy)
* [`architect dev [CONFIGS_OR_COMPONENTS]`](#architect-dev-configs_or_components)
* [`architect dev:list`](#architect-devlist)
* [`architect dev:restart [SERVICES]`](#architect-devrestart-services)
* [`architect dev:stop [NAME]`](#architect-devstop-name)
* [`architect doctor`](#architect-doctor)
* [`architect environments:create [ENVIRONMENT]`](#architect-environmentscreate-environment)
* [`architect environments:destroy [ENVIRONMENT]`](#architect-environmentsdestroy-environment)
* [`architect environments:ingresses [ENVIRONMENT]`](#architect-environmentsingresses-environment)
* [`architect exec [RESOURCE] [FLAGS] -- [COMMAND]`](#architect-exec-resource-flags----command)
* [`architect help [COMMAND]`](#architect-help-command)
* [`architect init [NAME]`](#architect-init-name)
* [`architect link [COMPONENTPATH]`](#architect-link-componentpath)
* [`architect link:list`](#architect-linklist)
* [`architect login`](#architect-login)
* [`architect logout`](#architect-logout)
* [`architect logs [RESOURCE]`](#architect-logs-resource)
* [`architect port-forward [RESOURCE] [FLAGS]`](#architect-port-forward-resource-flags)
* [`architect register [COMPONENT]`](#architect-register-component)
* [`architect scale [SERVICE]`](#architect-scale-service)
* [`architect secrets:download SECRETS_FILE`](#architect-secretsdownload-secrets_file)
* [`architect secrets:upload SECRETS_FILE`](#architect-secretsupload-secrets_file)
* [`architect task COMPONENT TASK`](#architect-task-component-task)
* [`architect unlink [COMPONENTPATHORNAME]`](#architect-unlink-componentpathorname)## `architect autocomplete [SHELL]`
display autocomplete installation instructions
```
USAGE
$ architect autocomplete [SHELL] [-r]ARGUMENTS
SHELL shell typeFLAGS
-r, --refresh-cache Refresh cache (ignores displaying instructions)DESCRIPTION
display autocomplete installation instructionsEXAMPLES
$ architect autocomplete$ architect autocomplete bash
$ architect autocomplete zsh
$ architect autocomplete --refresh-cache
```_See code: [@oclif/plugin-autocomplete](https://github.com/oclif/plugin-autocomplete/blob/v1.2.0/src/commands/autocomplete/index.ts)_
## `architect clusters [QUERY]`
Search for clusters on Architect Cloud
```
USAGE
$ architect clusters [QUERY] [-a ]ARGUMENTS
QUERY Search query used to filter resultsFLAGS
-a, --account= Architect accountDESCRIPTION
Search for clusters on Architect CloudALIASES
$ architect cluster
$ architect cluster:search
$ architect cluster:list
$ architect clusters:search
$ architect clusters:listEXAMPLES
$ architect clusters$ architect clusters --account=myaccount mycluster
```_See code: [src/commands/clusters/index.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/clusters/index.ts)_
## `architect clusters:create [CLUSTER]`
Register a new cluster with Architect Cloud
```
USAGE
$ architect clusters:create [CLUSTER] [-a ] [--auto-approve ] [-t AGENT|agent] [-k | -h
] [--flag ]ARGUMENTS
CLUSTER Name to give the clusterFLAGS
-a, --account= Architect account
-h, --host=
-k, --kubeconfig= [default: ~/.kube/config]
-t, --type=
--auto-approve=
--flag=... [default: ]DESCRIPTION
Register a new cluster with Architect CloudALIASES
$ architect clusters:register
$ architect cluster:createEXAMPLES
$ architect clusters:create --account=myaccount$ architect clusters:register --account=myaccount --kubeconfig=~/.kube/config --auto-approve
```_See code: [src/commands/clusters/create.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/clusters/create.ts)_
## `architect clusters:destroy [CLUSTER]`
Deregister a cluster from Architect
```
USAGE
$ architect clusters:destroy [CLUSTER] [-a ] [--auto-approve ] [-f ]ARGUMENTS
CLUSTER Name of the cluster to deregisterFLAGS
-a, --account= Architect account
-f, --force= Force the deletion even if the cluster is not empty
--auto-approve= Automatically apply the changesDESCRIPTION
Deregister a cluster from ArchitectALIASES
$ architect clusters:deregister
$ architect cluster:destroyEXAMPLES
$ architect cluster:destroy --account=myaccount architect$ architect clusters:deregister --account=myaccount --auto-approve --force architect
```_See code: [src/commands/clusters/destroy.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/clusters/destroy.ts)_
## `architect components:versions [COMPONENT_NAME]`
Search component versions of a particular component
```
USAGE
$ architect components:versions [COMPONENT_NAME] [-a ]FLAGS
-a, --account= Architect accountDESCRIPTION
Search component versions of a particular componentALIASES
$ architect component:versions
$ architect component:versionEXAMPLES
$ architect component:versions mycomponent$ architect component:versions --account=myaccount mycomponent
```_See code: [src/commands/components/versions.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/components/versions.ts)_
## `architect config:get OPTION`
Get the value of a CLI config option
```
USAGE
$ architect config:get [OPTION]ARGUMENTS
OPTION Name of a config optionDESCRIPTION
Get the value of a CLI config optionEXAMPLES
$ architect config:get log_level
```_See code: [src/commands/config/get.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/config/get.ts)_
## `architect config:set OPTION VALUE`
Set a new value for a CLI configuration option
```
USAGE
$ architect config:set [OPTION] [VALUE]ARGUMENTS
OPTION Name of a config option
VALUE New value to assign to a config optionDESCRIPTION
Set a new value for a CLI configuration optionEXAMPLES
$ architect config:set log_level info
```_See code: [src/commands/config/set.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/config/set.ts)_
## `architect config:view`
View all the CLI configuration settings
```
USAGE
$ architect config:viewDESCRIPTION
View all the CLI configuration settingsALIASES
$ architect configEXAMPLES
$ architect config
```_See code: [src/commands/config/view.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/config/view.ts)_
## `architect deploy [CONFIGS_OR_COMPONENTS]`
Create a deploy job on Architect Cloud
```
USAGE
$ architect deploy [CONFIGS_OR_COMPONENTS] [--auto-approve | -o | ] [-a ] [-e
] [--production ] [-d ] [--secret-file ] [-s ] [--deletion-protection |
] [-r ] [--browser ] [--arg ] [--architecture ] [--cache-directory ]ARGUMENTS
CONFIGS_OR_COMPONENTS Path to an architect.yml file or component `component:latest`. Multiple components are
accepted.FLAGS
-a, --account= Architect account
-d, --detached= Run in detached mode
-e, --environment= Architect environment
-o, --compose-file= Path where the compose file should be written to
-r, --recursive= [default: true] Toggle to automatically deploy all dependencies
-s, --secret=... [default: ] An individual secret key and value in the form SECRET_KEY=SECRET_VALUE
--architecture=... [default: amd64] Architecture(s) to target for Docker image builds
--arg=... Build arg(s) to pass to docker build
--auto-approve= Automatically approve the deployment without a review step. Used for debugging and CI
flows.
--browser= [default: true] Automatically open urls in the browser for local deployments
--cache-directory= Directory to write build cache to. Do not use in Github Actions:
https://docs.architect.io/deployments/automated-previews/#caching-between-workflow-runs
--deletion-protection= [default: true] Toggle for deletion protection on deployments
--production= Please use --environment.
--secret-file=... [default: ] Path of secrets fileDESCRIPTION
Create a deploy job on Architect CloudEXAMPLES
$ architect deploy mycomponent:latest$ architect deploy ./myfolder/architect.yml --secret-file=./mysecrets.yml --environment=myenvironment --account=myaccount --auto-approve
```_See code: [src/commands/deploy.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/deploy.ts)_
## `architect destroy`
Destroy components from an environment
```
USAGE
$ architect destroy [--auto-approve | | ] [-a ] [-e ] [-c ]FLAGS
-a, --account= Architect account
-c, --components=... Component(s) to destroy
-e, --environment= Architect environment
--auto-approve= Automatically approve the deployment without a review step. Used for debugging and CI
flows.DESCRIPTION
Destroy components from an environmentEXAMPLES
$ architect destroy --account=myaccount --auto-approve$ architect destroy --account=myaccount --environment=myenvironment --auto-approve
```_See code: [src/commands/destroy.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/destroy.ts)_
## `architect dev [CONFIGS_OR_COMPONENTS]`
Run your stack locally
```
USAGE
$ architect dev [CONFIGS_OR_COMPONENTS] [-a ] [-o | -e ] [--secret-file ]
[-s ] [-r ] [--browser ] [--port ] [-d ] [--wait-timeout ] [--debug
] [--arg ] [--ssl ] [--overlay ]ARGUMENTS
CONFIGS_OR_COMPONENTS Path to an architect.yml file or component `component:latest`. Multiple components are
accepted.FLAGS
-a, --account= Architect account
-d, --detached= Run in detached mode
-e, --environment= Name of environment created locally during dev. This is only local and will not reflect in
your architect account
-o, --compose-file= Path where the compose file should be written to
-r, --recursive= [default: true] Toggle to automatically deploy all dependencies
-s, --secret=... [default: ] An individual secret key and value in the form SECRET_KEY=SECRET_VALUE
--arg=... Build arg(s) to pass to docker build
--browser= [default: true] Automatically open urls in the browser for local deployments
--debug= [default: true] Turn debug mode on (true) or off (false)
--overlay= [default: true] Displays an overlay in the bottom right corner of the screen with quick
commands
--port= Port for the gateway. Defaults to 443. If --ssl=false is set, defaults to 80 instead.
--secret-file=... [default: ] Path of secrets file
--ssl= [default: true] Use https for all ingresses
--wait-timeout= [default: 10m] Time to wait for services to be ready/healthy before detaching.DESCRIPTION
Run your stack locallyEXAMPLES
$ architect dev ./mycomponent/architect.yml$ architect dev ./mycomponent/architect.yml -a myaccount --secrets-env=myenvironment
$ architect dev --port=1234 --browser=false --debug=true --secret-file=./mycomponent/mysecrets.yml ./mycomponent/architect.yml
```_See code: [src/commands/dev/index.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/dev/index.ts)_
## `architect dev:list`
List all running dev instances.
```
USAGE
$ architect dev:list [-f TABLE|table|JSON|json]FLAGS
-f, --format= [default: table] Format to output data in. Table or JSON
DESCRIPTION
List all running dev instances.EXAMPLES
$ architect dev:list
```_See code: [src/commands/dev/list.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/dev/list.ts)_
## `architect dev:restart [SERVICES]`
Restart or rebuild a running service
```
USAGE
$ architect dev:restart [SERVICES] [-e ] [-b ]ARGUMENTS
SERVICES Name of the service(s) to restartFLAGS
-b, --build= [default: true] Rebuild the services image before restarting (defaults to true)
-e, --environment= Architect environmentDESCRIPTION
Restart or rebuild a running serviceEXAMPLES
$ architect dev:restart$ architect dev:restart --build=false hello-world.services.api
$ architect dev:restart hello-world.services.api hello-world.services.app
```_See code: [src/commands/dev/restart.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/dev/restart.ts)_
## `architect dev:stop [NAME]`
Stop a local deployment
```
USAGE
$ architect dev:stop [NAME]ARGUMENTS
NAME Name of local environmentDESCRIPTION
Stop a local deploymentEXAMPLES
$ architect dev:stop
```_See code: [src/commands/dev/stop.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/dev/stop.ts)_
## `architect doctor`
Get debugging information for troubleshooting
```
USAGE
$ architect doctorFLAGS
-o, --output= Choose a file to output the debug information toDESCRIPTION
Get debugging information for troubleshootingEXAMPLES
$ architect doctor$ architect doctor -o ./myoutput.yml
```_See code: [src/commands/doctor.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/doctor.ts)_
## `architect environments:create [ENVIRONMENT]`
Register a new environment with Architect Cloud
```
USAGE
$ architect environments:create [ENVIRONMENT] [-a ] [--cluster | --platform ] [--description
] [--ttl ] [--flag zero-trust]ARGUMENTS
ENVIRONMENT Name to give the environmentFLAGS
-a, --account= Architect account
--cluster= Architect cluster
--description= Environment Description
--flag=... zero-trust: Create the environment with zero-trust network policies.
--platform= Architect cluster
--ttl= The TTL of the environment in a duration of time, ex. 30d, 12h, or 30mDESCRIPTION
Register a new environment with Architect CloudALIASES
$ architect environment:create
$ architect envs:create
$ architect env:createEXAMPLES
environment:create --account=myaccount myenvironmentenvironment:create --account=myaccount --ttl=5days --description="My new temporary Architect environment" myenvironment
```_See code: [src/commands/environments/create.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/environments/create.ts)_
## `architect environments:destroy [ENVIRONMENT]`
Deregister an environment
```
USAGE
$ architect environments:destroy [ENVIRONMENT] [-a ] [--auto-approve ] [-f ]ARGUMENTS
ENVIRONMENT Name of the environment to deregisterFLAGS
-a, --account= Architect account
-f, --force= Force the deletion even if the environment is not empty
--auto-approve= Automatically apply the changesDESCRIPTION
Deregister an environmentALIASES
$ architect environment:destroy
$ architect envs:destroy
$ architect env:destroy
$ architect env:deregister
$ architect environment:deregisterEXAMPLES
$ architect environment:destroy --account=myaccount myenvironment$ architect environment:deregister --account=myaccount --auto-approve --force myenvironment
```_See code: [src/commands/environments/destroy.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/environments/destroy.ts)_
## `architect environments:ingresses [ENVIRONMENT]`
List the resolvable URLs for services exposed by your environment
```
USAGE
$ architect environments:ingresses [ENVIRONMENT] [-a ]ARGUMENTS
ENVIRONMENT Name to give the environmentFLAGS
-a, --account= Architect accountDESCRIPTION
List the resolvable URLs for services exposed by your environmentALIASES
$ architect environment:ingresses
$ architect envs:ingresses
$ architect env:ingresses
```_See code: [src/commands/environments/ingresses.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/environments/ingresses.ts)_
## `architect exec [RESOURCE] [FLAGS] -- [COMMAND]`
Exec into service instances
```
USAGE
$ architect exec [RESOURCE] [FLAGS] -- [COMMAND]ARGUMENTS
RESOURCE Name of resourceFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
-i, --stdin= [default: true] Pass stdin to the container. Only works on remote deploys.
-r, --replica= Replica index for service. Only works on remote deploys.
-t, --tty= Stdin is a TTY. If the flag isn't supplied, tty or no-tty is automatically detected.DESCRIPTION
Exec into service instancesEXAMPLES
$ architect exec -- ls$ architect exec -- /bin/sh
$ architect exec --account myaccount --environment myenvironment mycomponent.services.app -- /bin/sh
$ architect exec --account myaccount --environment myenvironment mycomponent.services.app --replica 0 -- /bin/sh
```_See code: [src/commands/exec.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/exec.ts)_
## `architect help [COMMAND]`
Display help for architect.
```
USAGE
$ architect help [COMMAND] [-n]ARGUMENTS
COMMAND Command to show help for.FLAGS
-n, --nested-commands Include all nested commands in the output.DESCRIPTION
Display help for architect.
```_See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.11/src/commands/help.ts)_
## `architect init [NAME]`
Initialize an architect component from an existing docker-compose file or create a project from Architect starter projects.
```
USAGE
$ architect init [NAME] [-o ] [--from-compose ] [-s ]ARGUMENTS
NAME Name of your projectFLAGS
-o, --component-file= [default: architect.yml] Path where the component file should be written to
-s, --starter= Specify a starter project template to use as the base of your new Architect component.
--from-compose=DESCRIPTION
Initialize an architect component from an existing docker-compose file or create a project from Architect starter
projects.EXAMPLES
$ architect init$ architect init mycomponent-or-myproject
$ architect init --from-compose=mycompose.yml --component-file=architect.yml
```_See code: [src/commands/init.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/init.ts)_
## `architect link [COMPONENTPATH]`
Link a local component to the host to be used to power local deployments.
```
USAGE
$ architect link [COMPONENTPATH]ARGUMENTS
COMPONENTPATH [default: .] The path of the component to linkDESCRIPTION
Link a local component to the host to be used to power local deployments.EXAMPLES
$ architect link$ architect link -p ./mycomponent/architect.yml
```_See code: [src/commands/link/index.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/link/index.ts)_
## `architect link:list`
List all linked components.
```
USAGE
$ architect link:listDESCRIPTION
List all linked components.EXAMPLES
$ architect link:list
```_See code: [src/commands/link/list.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/link/list.ts)_
## `architect login`
Login to the Architect Cloud platform
```
USAGE
$ architect login [-e ] [-p ]FLAGS
-e, --email= Email
-p, --password= PasswordDESCRIPTION
Login to the Architect Cloud platformEXAMPLES
$ architect login$ architect login -e [email protected]
```_See code: [src/commands/login.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/login.ts)_
## `architect logout`
Logout from the Architect registry
```
USAGE
$ architect logoutDESCRIPTION
Logout from the Architect registryEXAMPLES
$ architect logout
```_See code: [src/commands/logout.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/logout.ts)_
## `architect logs [RESOURCE]`
Get logs from services both locally and remote
```
USAGE
$ architect logs [RESOURCE] [-a ] [-e ] [-f ] [--since ] [--raw ]
[--tail ] [--timestamps ] [-r ]ARGUMENTS
RESOURCE Name of resourceFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
-f, --follow= Specify if the logs should be streamed.
-r, --replica= Replica index for service. Only works on remote deploys.
--raw= Show the raw output of the logs.
--since= Only return logs newer than a relative duration like 5s, 2m, or 3h. Defaults to all logs.
Only one of since-time / since may be used.
--tail= [default: -1] Lines of recent log file to display. Defaults to -1 with no selector, showing
all log lines otherwise 10, if a selector is provided.
--timestamps= Include timestamps on each line in the log output.DESCRIPTION
Get logs from services both locally and remoteEXAMPLES
$ architect logs$ architect logs --follow --raw --timestamps
```_See code: [src/commands/logs.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/logs.ts)_
## `architect port-forward [RESOURCE] [FLAGS]`
Port forward service to localhost
```
USAGE
$ architect port-forward [RESOURCE] [FLAGS]ARGUMENTS
RESOURCE Name of resourceFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
-r, --replica= Replica index for service. Only works on remote deploys.
--address= [default: localhost] Addresses to listen on. Only accepts IP addresses or localhost as a
value.
--port= The port to listen on for the address provided.
--target-port= The target port for the service.DESCRIPTION
Port forward service to localhostEXAMPLES
$ architect port-forward$ architect port-forward --account myaccount --environment myenvironment mycomponent.services.app
$ architect port-forward --account myaccount --environment myenvironment mycomponent.services.app --replica 0
$ architect port-forward --address 0.0.0.0 --port 8080
```_See code: [src/commands/port-forward.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/port-forward.ts)_
## `architect register [COMPONENT]`
Register a new Component with Architect Cloud. Multiple components are accepted. If multiple components are specified, the same command arg(s) and flag(s) will be applied to each component.
```
USAGE
$ architect register [COMPONENT] [-a ] [--arg ] [--architecture ] [--cache-directory
] [-t | ]ARGUMENTS
COMPONENT Path to the component(s) to registerFLAGS
-a, --account= Architect account
-t, --tag= [default: latest] Tag to give to the new component
--architecture=... [default: amd64] Architecture(s) to target for Docker image builds
--arg=... Build arg(s) to pass to docker build
--cache-directory= Directory to write build cache to. Do not use in Github Actions:
https://docs.architect.io/deployments/automated-previews/#caching-between-workflow-runsDESCRIPTION
Register a new Component with Architect Cloud. Multiple components are accepted. If multiple components are specified,
the same command arg(s) and flag(s) will be applied to each component.ALIASES
$ architect component:register
$ architect components:register
$ architect c:register
$ architect comp:registerEXAMPLES
$ architect register$ architect register -t latest
$ architect register -a myaccount -t latest ./architect.yml ../myothercomponent/architect.yml
$ architect register -a myaccount -t latest --arg NODE_ENV=dev ./architect.yml
```_See code: [src/commands/register.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/register.ts)_
## `architect scale [SERVICE]`
Scale a service to a specified number of replicas.
```
USAGE
$ architect scale [SERVICE] [-a ] [-e ] [--component ] [--tag ] [--replicas
] [--clear]ARGUMENTS
SERVICE Name of serviceFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
--clear Use to clear scaling settings for the specified service in the specified environment
--component= Name of the component with the service to scale
--replicas= Number of desired service replicas
--tag= Tag of the component to scaleDESCRIPTION
Scale a service to a specified number of replicas.EXAMPLES
$ architect scale api --component my-component --replicas 4$ architect scale api --component my-component --clear
```_See code: [src/commands/scale.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/scale.ts)_
## `architect secrets:download SECRETS_FILE`
Download secrets from an account or an environment
```
USAGE
$ architect secrets:download [SECRETS_FILE] [-a ] [-e ] [--cluster ]ARGUMENTS
SECRETS_FILE Secrets filename to download secretsFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
--cluster= Architect clusterDESCRIPTION
Download secrets from an account or an environmentALIASES
$ architect secrets
$ architect secrets/getEXAMPLES
$ architect secrets --account=myaccount ./mysecrets.yml$ architect secrets --account=myaccount --cluster=mycluster ./mysecrets.yml
$ architect secrets --account=myaccount --environment=myenvironment ./mysecrets.yml
```_See code: [src/commands/secrets/download.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/secrets/download.ts)_
## `architect secrets:upload SECRETS_FILE`
Upload secrets from a file to an account or an environment
```
USAGE
$ architect secrets:upload [SECRETS_FILE] [-a ] [-e ] [--cluster ] [--override ]ARGUMENTS
SECRETS_FILE Secrets file to be uploadedFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
--cluster= Architect cluster
--override= Allow override of existing secretsDESCRIPTION
Upload secrets from a file to an account or an environmentALIASES
$ architect secrets:setEXAMPLES
$ architect secrets:set --account=myaccount ./mysecrets.yml$ architect secrets:set --account=myaccount --override ./mysecrets.yml
$ architect secrets:set --account=myaccount --cluster=mycluster ./mysecrets.yml
$ architect secrets:set --account=myaccount --cluster=mycluster --override ./mysecrets.yml
$ architect secrets:set --account=myaccount --environment=myenvironment ./mysecrets.yml
$ architect secrets:set --account=myaccount --environment=myenvironment --override ./mysecrets.yml
```_See code: [src/commands/secrets/upload.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/secrets/upload.ts)_
## `architect task COMPONENT TASK`
Execute a task in the given environment
```
USAGE
$ architect task [COMPONENT] [TASK] [-l | -a ] [-o | | -e ]ARGUMENTS
COMPONENT The name of the component that contains the task to execute
TASK The name of the task to executeFLAGS
-a, --account= Architect account
-e, --environment= Architect environment
-l, --local= Deploy the stack locally instead of via Architect Cloud
-o, --compose-file= Path where the compose file should be written toDESCRIPTION
Execute a task in the given environmentALIASES
$ architect task:execEXAMPLES
$ architect task --account=myaccount --environment=myenvironment mycomponent:latest mytask
```_See code: [src/commands/task.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/task.ts)_
## `architect unlink [COMPONENTPATHORNAME]`
Unlink a component from the host by path or name
```
USAGE
$ architect unlink [COMPONENTPATHORNAME] [--all ]FLAGS
--all= Unlink all components registered locallyDESCRIPTION
Unlink a component from the host by path or nameEXAMPLES
$ architect unlink$ architect unlink -p ../architect.yml
$ architect unlink -p mycomponent
```_See code: [src/commands/unlink.ts](https://github.com/architect-team/architect-cli/blob/v1.44.1-rc.1/src/commands/unlink.ts)_