Create a dynamic CLI menu command.
This file represents a dynamically created CLI command, a folder containing the
command.yaml file is treated as a CLI menu command of its own.
The content of the file dictates how the command will appear on the CLI menu and how to interact with it.
name: <command-name> description: <command-long-description> command: use: <cli-usage> short: <cli-short-description>
||CLI menu command usage keyword|
||CLI menu short description|
name: "Infrastructure team" description: "Provisioning actions for: backoffice, developement and production" command: use: "team-infra" short: "Infrastructure team provisioning actions"
Every menu command derived from the
command.yaml file will contain a preset of sub-commands. Those sub-commands interact with the actions or workflows defined in the
instructions.yaml file of the respective folder.
||Run an action non-interactively|
||Select an action using an interactive menu|
||Check status validity of available actions|
select sub-command should be used when you wish to start an interactive menu selection for action or workflow.
anchor team-infra select
run sub-command should be used when you wish to run an action or workflow directly, skipping the selection menu.
anchor team-infra run backoffice --action=install-jenkins-master
anchor team-infra run backoffice --workflow=provision-jenkins-server-agents
runcommand appears on every action or workflow information panel when using an interactive selection menu.