配置
facetsctl 需要连接到所有涉及吸控者的动作。 确保您在系统运行时有嵌入器 facetsctl 正在运行.
系统要求
支持的节点版本: QQ 12.0.0
使用量
$ npm install -g @facets-cloud/facetsctlv3
$ facetsctl COMMAND
running command...
$ facetsctl (--version)
@facets-cloud/facetsctlv3/1.1.6 linux-x64 node-v20.19.4
$ facetsctl --help [COMMAND]
USAGE
$ facetsctl COMMAND
...
图标
facetsctl artifact initfacetsctl artifact pushfacetsctl artifact registerfacetsctl artifact uploadfacetsctl cluster managefacetsctl help [COMMAND]facetsctl loginfacetsctl release sync APPSfacetsctl facetsctl release wait <apps> -p <value> -e <value> [--sync]
facetsctl artifact init
初始化文物信息
USAGE
$ facetsctl artifact init -p <value> -a <value> [-s <value> | -c <value>]
FLAGS
-a, --artifactory=<value> (required) Artifactory name
-c, --ci-integration=<value> CI Integration Name
-p, --project=<value> (required) Project name
-s, --service=<value> Service name
DESCRIPTION
Initialize artifact information
EXAMPLES
$ facetsctl artifact init --project my-project --service my-service --artifactory my-artifactory
Created artifact-info.facets.yaml
参见代码 : src/命令/艺术/init.ts
facetsctl artifact push
将一个 Docker 图像推到配置的文物仓库
USAGE
$ facetsctl artifact push -d <value>
FLAGS
-d, --docker-image=<value> (required) URL of the Docker image to push
DESCRIPTION
Push a Docker image to the configured artifact repository
EXAMPLES
$ facetsctl artifact push --docker-image my-docker-image:latest
Successfully pushed my-docker-image:latest
参见代码 : 斜弧/命令/艺术/推力
facetsctl artifact register
注册带有指定类型和值的 Docker 图像
USAGE
$ facetsctl artifact register -t GIT_REF|ENVIRONMENT|RELEASE_STREAM -i <value> -v <value> [-r <value>]
FLAGS
-i, --docker-image=<value> (required) Docker image to register
-r, --runId=<value> Optional run ID to corelate to your CI system, else it will be time
-t, --type=<option> (required) Type (GIT_REF, ENVIRONMENT, RELEASE_STREAM)
<options: GIT_REF|ENVIRONMENT|RELEASE_STREAM>
-v, --value=<value> (required) Value of the specified type
DESCRIPTION
Register a Docker image with a specified type and value
EXAMPLES
$ facetsctl artifact register --type GIT_REF --docker-image my-docker-image:latest --value my-git-ref
Successfully registered my-docker-image:latest
Check out the registered build at: https://example.com/builds/1234
参见代码 : src/commands/艺人/注册人.ts
facetsctl artifact upload
将任意类型的应用程序构建文件上传到 Facets 控制计划
USAGE
$ facetsctl artifact upload -t GIT_REF|ENVIRONMENT|RELEASE_STREAM -f <value> -v <value> [-r <value>]
FLAGS
-f, --file-path=<value> (required) path to the application build file (e.g., WAR, JAR, ZIP) on your local system
-r, --runId=<value> Optional run ID to corelate to your CI system, else it will be time
-t, --type=<option> (required) Type (GIT_REF, ENVIRONMENT, RELEASE_STREAM)
<options: GIT_REF|ENVIRONMENT|RELEASE_STREAM>
-v, --value=<value> (required) Value of the specified type
DESCRIPTION
Upload any type of application build file to the Facets Control Plane
EXAMPLES
$ facetsctl artifact upload --type GIT_REF --file-path file-to-upload --value my-git-ref
Successfully uploaded the file file-to-upload
Check out the registered build at: https://example.com/builds/1234
参见代码 : src/命令/艺术/上载.ts
facetsctl cluster manage
具有高级功能的Kubernetes集群的互动管理
USAGE
$ facetsctl cluster manage [-a] [-s <value>] [-r] [-d] [-v]
FLAGS
-a, --all Process all available clusters
-d, --download Download kubeconfig files for selected clusters
-r, --refresh Refresh kubernetes credentials for selected clusters
-s, --search=<value> Search for specific clusters by name, ID, or stack name
-v, --verbose Show detailed output and metrics
DESCRIPTION
Interactive management of Kubernetes clusters with advanced functionality
EXAMPLES
$ facetsctl cluster manage
$ facetsctl cluster manage --all
$ facetsctl cluster manage --search production
$ facetsctl cluster manage --all --refresh
$ facetsctl cluster manage --all --download
参见代码 : src/命令/集群/管理.ts
facetsctl help [COMMAND]
显示侧式ctl 的帮助 .
USAGE
$ facetsctl 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 facetsctl.
参见代码 : @oclif/plugin-帮助
facetsctl login
登录到 Facets 控制平面
USAGE
$ facetsctl login -u <value> -t <value> -f <value>
FLAGS
-f, --facets-url=<value> (required) URL of the Control plane
-t, --token=<value> (required) Personal token
-u, --username=<value> (required) Username
DESCRIPTION
Log in to the Facets control plane
EXAMPLES
$ facetsctl login --username my-user --token my-token --facets-url https://facets-control-plane.example.com
Logged in successfully
参见代码 : src/命令/日志.ts
facetsctl release sync APPS
同步外同步应用程序, 使其想要的状态与部署的状态相匹配
USAGE
$ facetsctl release sync APPS -p <value> -e <value>
ARGUMENTS
APPS List of app names to sync (comma-separated | example: ... sync app1,app2,app3 -p ...)
FLAGS
-e, --environment=<value> (required) Environment name
-p, --project=<value> (required) Project name
DESCRIPTION
Sync out-of-sync apps to match their desired state with the deployed state
参见代码 : sc/命令/释放/同步
facetsctl facetsctl release wait <apps> -p <value> -e <value> [--sync]
等待指定的应用程序的同步状态, 如果提供 -- sync 则触发同步
USAGE
$ facetsctl release wait facetsctl <apps> -p <value> -e <value> [--sync]
ARGUMENTS
APPS List of app names to wait for (comma-separated | example: ... sync app1,app2,app3 -p ...)
FLAGS
-e, --environment=<value> (required) Environment name
-p, --project=<value> (required) Project name
--sync Trigger a sync if apps are out-of-sync
DESCRIPTION
Wait for the sync status of the specified apps, and trigger sync if --sync is provided
参见代码 : src/命令/释放/等待.ts
facetsctl artifact initfacetsctl artifact pushfacetsctl artifact registerfacetsctl cluster managefacetsctl help [COMMAND]facetsctl loginfacetsctl release syncfacetsctl release wait
facetsctl artifact init
初始化文物信息
USAGE
$ facetsctl artifact init -p <value> -s <value> -a <value>
FLAGS
-a, --artifactory=<value> (required) Artifactory name
-p, --project=<value> (required) Project name
-s, --service=<value> (required) Service name
DESCRIPTION
Initialize artifact information
EXAMPLES
$ facetsctl artifact init --project my-project --service my-service --artifactory my-artifactory
Created artifact-info.facets.yaml
参见代码 : src/命令/艺术/init.ts
facetsctl artifact push
将一个 Docker 图像推到配置的文物仓库
USAGE
$ facetsctl artifact push -d <value>
FLAGS
-d, --docker-image=<value> (required) URL of the Docker image to push
DESCRIPTION
Push a Docker image to the configured artifact repository
EXAMPLES
$ facetsctl artifact push --docker-image my-docker-image:latest
Successfully pushed my-docker-image:latest
参见代码 : 斜弧/命令/艺术/推力
facetsctl artifact register
注册带有指定类型和值的 Docker 图像
USAGE
$ facetsctl artifact register -t GIT_REF|ENVIRONMENT|RELEASE_STREAM -i <value> -v <value> [-r <value>]
FLAGS
-i, --docker-image=<value> (required) Docker image to register
-r, --runId=<value> Optional run ID to corelate to your CI system, else it will be time
-t, --type=<option> (required) Type (GIT_REF, ENVIRONMENT, RELEASE_STREAM)
<options: GIT_REF|ENVIRONMENT|RELEASE_STREAM>
-v, --value=<value> (required) Value of the specified type
DESCRIPTION
Register a Docker image with a specified type and value
EXAMPLES
$ facetsctl artifact register --type GIT_REF --docker-image my-docker-image:latest --value my-git-ref
Successfully registered my-docker-image:latest
Check out the registered build at: https://example.com/builds/1234
参见代码 : src/commands/艺人/注册人.ts
facetsctl cluster manage
具有高级功能的Kubernetes集群的互动管理.
USAGE
$ facetsctl cluster manage [-a] [-s <value>] [-r] [-d]
FLAGS
-a, --all Process all available clusters
-s, --search=<value> Search for specific clusters by name, ID, or stack name
-r, --refresh Refresh kubernetes credentials for selected clusters
-d, --download Download kubeconfig files for selected clusters
DESCRIPTION
Interactive management of Kubernetes clusters with advanced functionality.
This command provides a unified interface to:
1. List all clusters from the control plane
2. Search for specific clusters if needed
3. Select one or more clusters from the list
4. Choose to either download kubeconfig files or refresh Kubernetes credentials for the selected clusters
5. Execute operations in parallel for better performance
The command handles error reporting and provides detailed status information for each operation.
Clusters without available kubeconfig files or credentials will be reported properly without failing.
EXAMPLES
$ facetsctl cluster manage
$ facetsctl cluster manage --all
$ facetsctl cluster manage --search production
$ facetsctl cluster manage --all --refresh
$ facetsctl cluster manage --all --download
参见代码 : src/命令/集群/管理.ts
facetsctl help [COMMAND]
显示侧式ctl 的帮助 .
USAGE
$ facetsctl 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 facetsctl.
参见代码 : @oclif/plugin-帮助
facetsctl login
登录到 Facets 控制平面
USAGE
$ facetsctl login -u <value> -t <value> -f <value>
FLAGS
-f, --facets-url=<value> (required) URL of the Control plane
-t, --token=<value> (required) Personal token
-u, --username=<value> (required) Username
DESCRIPTION
Log in to the Facets control plane
EXAMPLES
$ facetsctl login --username my-user --token my-token --facets-url https://facets-control-plane.example.com
Logged in successfully
参见代码 : src/命令/日志.ts
facetsctl release sync
同步外同步应用程序, 使其想要的状态与部署的状态相匹配
USAGE
$ facetsctl release sync <apps> -p <value> -e <value>
ARGUMENTS
<apps>: List of app names to sync (comma-separated | example: ... sync app1,app2,app3 -p ...)
FLAGS
-e, --environment=<value> (required) Environment name
-p, --project=<value> (required) Project name
DESCRIPTION
Sync out-of-sync apps to match their desired state with the deployed state
EXAMPLES
$ facetsctl release sync my-resource1,my-resource2 -p my-project -e my-environment
参见代码 : sc/命令/释放/同步
facetsctl release wait
等待指定的应用程序的同步状态, 如果提供 -- sync 则触发同步
USAGE
$ facetsctl release wait <apps> -p <value> -e <value> [--sync]
ARGUMENTS
<apps>: List of app names to wait for (comma-separated | example: ... sync app1,app2,app3 -p ...)
FLAGS
-e, --environment=<value> (required) Environment name
-p, --project=<value> (required) Project name
--sync Trigger a sync if apps are out-of-sync
DESCRIPTION
Wait for the sync status of the specified apps, and trigger sync if --sync is provided
EXAMPLES
$ facetsctl release wait my-resource1,my-resource2 -p my-project -e my-environment
$ facetsctl release wait my-resource1,my-resource2 -p my-project -e my-environment --sync
参见代码 : src/命令/释放/等待.ts