facetsctl
requires a connection to docker for all actions involving docker. Ensure that you have docker running on the system where facetsctl
is running.
Supported node versions: >= 12.0.0
$ npm install -g @facets-cloud/facetsctl
$ facetsctl COMMAND
running command...
$ facetsctl (--version)
@facets-cloud/facetsctl/1.0.11 linux-x64 node-v18.4.0
$ facetsctl --help [COMMAND]
USAGE
$ facetsctl COMMAND
...
facetsctl download-kubeconfig
facetsctl generate-config CONFIG-FILE
facetsctl help [COMMAND]
facetsctl login
facetsctl push
facetsctl refresh
facetsctl register
facetsctl register-by-env
facetsctl register-by-release-stream
facetsctl upload
Download your kubeconfig file for an environment. Kubeconfig can be downloaded using either an environment id or a combination of blueprint name and environment name.
USAGE
$ facetsctl download-kubeconfig [-e <value> | --environment-name <value> | --blueprint-name <value>]
FLAGS
-e, --environment-id=<value> Environment id for downloading kubeconfig
--blueprint-name=<value> Blueprint name using which environment was launched
--environment-name=<value> Environment name for downloading kubeconfig
DESCRIPTION
Download your kubeconfig file for an environment. Kubeconfig can be downloaded using either an environment id or a
combination of blueprint name and environment name.
EXAMPLES
$ facetsctl download-kubeconfig
See code: dist/commands/download-kubeconfig.ts
Convert a JSON, YAML, or properties file of a springboot application to a Facets Application JSON env section
USAGE
$ facetsctl generate-config [CONFIG-FILE]
ARGUMENTS
CONFIG-FILE The JSON, YAML, or properties file to convert
DESCRIPTION
Convert a JSON, YAML, or properties file of a springboot application to a Facets Application JSON env section
See code: dist/commands/generate-config.ts
Display help for facetsctl.
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.
See code: @oclif/plugin-help
Login to Facets control plane
USAGE
$ facetsctl login -u <value> -t <value> -c <value> [--debug <value>]
FLAGS
-c, --cp-url=<value> (required) URL of the Control plane
-t, --access-token=<value> (required) Personal token generated for the user
-u, --username=<value> (required) username of the user
--debug=<value> [default: false] See original error message thrown
DESCRIPTION
Login to Facets control plane
EXAMPLES
$ facetsctl login
See code: dist/commands/login.ts
Post new docker artifacts to the facets control plane
USAGE
$ facetsctl push -i <value> -a <value> -e <value> [--registration-type CLUSTER|RELEASE_STREAM]
[--registration-value <value>] [-d <value>] [--artifactory <value>] [--debug <value>] [--git-ref <value>]
FLAGS
-a, --artifact-name=<value> (required) name of the artifact as mentioned in blueprint
-d, --description=<value> description of the build if any
-e, --external-id=<value> (required) external identifier for artifact
-i, --docker-image=<value> (required) image location <IMAGE:TAG>
--artifactory=<value> artifactory where image will be pushed
--debug=<value> [default: false] See original error message thrown
--git-ref=<value> Git ref provided in CI Rule
--registration-type=<option> mode of registration
<options: CLUSTER|RELEASE_STREAM>
--registration-value=<value> value for release stream or cluster id, based on mode of registration
DESCRIPTION
Post new docker artifacts to the facets control plane
EXAMPLES
$ facetsctl push
See code: dist/commands/push.ts
Refresh your k8s credentials for an environment. Credentials can be refreshed using either an environment id or a combination of blueprint name and environment name.
USAGE
$ facetsctl refresh [-e <value> | --environment-name <value> | --blueprint-name <value>]
FLAGS
-e, --environment-id=<value> Environment id for credentials needs to be refreshed
--blueprint-name=<value> Blueprint name using which environment was launched
--environment-name=<value> Environment Name for credentials needs to be refreshed
DESCRIPTION
Refresh your k8s credentials for an environment. Credentials can be refreshed using either an environment id or a
combination of blueprint name and environment name.
EXAMPLES
$ facetsctl refresh
See code: dist/commands/refresh.ts
Register already pushed images from external repository to facets control plane
USAGE
$ facetsctl register -i <value> -s <value> -e <value> --git-ref <value> [-d <value>] [--registry <value>]
[--registration-type ENVIRONMENT|RELEASE_STREAM] [--blueprint-name <value>] [--debug <value>]
FLAGS
-d, --description=<value> description of the build if any
-e, --external-id=<value> (required) external identifier for artifact
-i, --docker-image=<value> (required) docker image URL in the external registry
-s, --service=<value> (required) name of the CI integration for which the artifact needs to be registered
--blueprint-name=<value> blueprint name in which CI Integration will be created if not present already
--debug=<value> [default: false] see original error message thrown
--git-ref=<value> (required) git ref provided in CI Rule
--registration-type=<option> mode of registration for CI integration
<options: ENVIRONMENT|RELEASE_STREAM>
--registry=<value> artifactory where image will be pushed
DESCRIPTION
Register already pushed images from external repository to facets control plane
EXAMPLES
$ facetsctl register
See code: dist/commands/register.ts
Register already pushed images from external repository to facets control plane through environment name.
USAGE
$ facetsctl register-by-env -i <value> -s <value> -e <value> [-d <value>] [--registry <value>] [--environment-id
<value> | [--environment-name <value> --blueprint-name <value>] | ] [--debug <value>]
FLAGS
-d, --description=<value> description of the build if any
-e, --external-id=<value> (required) external identifier for artifact
-i, --docker-image=<value> (required) docker image URL in the external registry
-s, --service=<value> (required) name of the CI integration for which the artifact needs to be registered
--blueprint-name=<value> blueprint name in which given environment is present
--debug=<value> [default: false] see original error message thrown
--environment-id=<value> environment id in which the artifact will be registered
--environment-name=<value> environment name in which the artifact will be registered
--registry=<value> artifactory where image will be pushed
DESCRIPTION
Register already pushed images from external repository to facets control plane through environment name.
EXAMPLES
$ facetsctl register-by-env
See code: dist/commands/register-by-env.ts
Register already pushed images from external repository to facets control plane through release stream.
USAGE
$ facetsctl register-by-release-stream -i <value> -s <value> -e <value> --release-stream <value> [-d <value>] [--registry
<value>] [--blueprint-name <value>] [--debug <value>]
FLAGS
-d, --description=<value> description of the build if any
-e, --external-id=<value> (required) external identifier for artifact
-i, --docker-image=<value> (required) docker image URL in the external registry
-s, --service=<value> (required) name of the CI integration for which the artifact needs to be registered
--blueprint-name=<value> blueprint name in which CI Integration will be created if not present already
--debug=<value> [default: false] see original error message thrown
--registry=<value> artifactory where image will be pushed
--release-stream=<value> (required) name of the release stream
DESCRIPTION
Register already pushed images from external repository to facets control plane through release stream.
EXAMPLES
$ facetsctl register-by-release-stream
See code: dist/commands/register-by-release-stream.ts
Upload any type of application build file to the Facets Control Plane
USAGE
$ facetsctl upload -p <value> -a <value> -e <value> [--registration-type ENVIRONMENT|RELEASE_STREAM]
[--registration-value <value>] [--git-ref <value>] [--blueprint-name <value>] [-d <value>] [--debug <value>]
FLAGS
-a, --artifact-name=<value> (required) name of the artifact-ci as mentioned in resource spec. If the CI integration
is already created, provide its name. If not, additionally provide blueprint name and
the registration type using respective flags.'
-d, --description=<value> description of the build if any
-e, --external-id=<value> (required) external identifier for CI Integration
-p, --file-path=<value> (required) path to the application build file (e.g., WAR, JAR, ZIP) on your local system
--blueprint-name=<value> name of the blueprint where the CI integration will be created.
--debug=<value> [default: false] See original error message thrown
--git-ref=<value> Git ref provided in CI Rule
--registration-type=<option> mode of registration
<options: ENVIRONMENT|RELEASE_STREAM>
--registration-value=<value> value for release stream or cluster id, based on mode of registration
DESCRIPTION
Upload any type of application build file to the Facets Control Plane
EXAMPLES
$ facetsctl upload
See code: dist/commands/upload.ts