Skip to content

Commands

Alex Co edited this page Feb 23, 2023 · 9 revisions

general

init

NAME

wukong init - Prepare the CLI before using it.

SYNOPSIS

wukong init

DESCRIPTION

Start the initialization process. This step will ask user to authenticate with a new credentials or keep their current credentials (if any). It also will ask user to select a default application to work with.

login

NAME

wukong login - Login the CLI with Okta credentials.

SYNOPSYS

wukong login

DESCRIPTION

Command to force re-login to Okta. Normally the wukong init already includes the login process, however there are certain cases that user will need to re-login, or using a different credentials.

config

list

NAME

wukong config list - List the current configuration object.

SYNOPSIS

wukong config list

DESCRIPTION

List the configurations of the CLI.

get

NAME

wukong config get - Get a specific config value.

SYNOPSIS

wukong config get NAME

DESCRIPTION

Get a specific config value. The name of the config key can take from a suggested list. For example if you want to set the output log director, just run wukong config get log then the CLI will show you the suggestion about which config key to use.

$ wukong config get log
error: "log" isn't a valid value for '<CONFIG_NAME>'
	[possible values: application, collect-telemetry, enable-log, log-dir]

	Did you mean "log-dir"?

For more information try --help

set

NAME

wukong config set - Set a specific config value

SYNOPSIS

wukong config set NAME VALUE

DESCRIPTION

Set a specific config value. For example if you want to change the default application, run wukong config set application foo, the CLI will change the default application to foo.

application

info

NAME

wukong application info - show the application’s relevant informations.

SYNOPSIS

wukong application info

DESCRIPTION

Show the current application’s informations. The command will show the important information that can be used for day to day operation. It will help the developers to find the information quicker without asking around.

pipeline

list

NAME

wukong pipeline list - List the current available pipelines of an application.

SYNOPSIS

wukong pipeline list

DESCRIPTION

List the current pipelines of the application.

describe

NAME

wukong pipeline describe - Show the details of a pipeline.

SYNOPSIS

wukong pipeline describe NAME

DESCRIPTION

Show the details of a pipeline. If a pipeline is a multi-branch, show the current status of the branch/PRs.

ci-status

NAME

wukong pipeline ci-status - Show the build status and (possible) errors on branch ci pipeline.

SYNOPSIS

wukong pipeline ci-status

DESCRIPTION

Show the ci status (status of the latest build) of your current branch’s PR.This command requires your current path is inside a supported Mindvalley application. IT WILL NOT WORK otherwise. Branches (other than master/main/staging) that do not have an open PR will return an error stating that there are no builds associated with the branch.

deployment

list

NAME

wukong deployment list - List the current available deployment pipelines of an application.

SYNOPSIS

wukong deployment list

DESCRIPTION

List the current available deployment pipelines of an application.

execute

NAME

wukong deployment execute - Start the deployment pipeline.

SYNOPSIS

wukong deployment execute [FLAGS….]

DESCRIPTION

Start the deployment pipeline with a (optional) image tag and parameters.

FLAGS

--namespapce          # (optional) The namespace to deploy to
--version             # (optional) The version that the deployment will perform
                      # against. It can only be either green or blue. 
                      # Default is green 
--artifact            # (optional) The build artifact that the deployment will use.

rollback

NAME

wukong deployment rollback - rolling back the application to the previous deployment.

SYNOPSIS

wukong deployment rollback

DESCRIPTION

Rolling back the deployment to the previous deployed artifact. This command will looks for the last succeed deployment and create a new deployment execution with the build artifact from the last succeed deployment.

FLAGS

--namespapce          # (optional) The namespace to deploy to
--version             # (optional) The version that the deployment will perform
                      # against. It can only be either green or blue. 
                      # Default is green 
Clone this wiki locally