Basic Information

The first part of a command definition describes how the command can be executed, including the command name and any arguments it can take. This is the interface to the user. Basic Command Attribute Properties describes the properties available for specifying this information.

Table 1. Basic Command Attribute Properties
Property Description
name The name of the command.
description A description of the command used as the help message for the command in the command line interface (CLI).
arguments (Optional) A list of argument definitions for the command.
flags (Optional) A list of flag definitions for the command.

The following shows an example definition of a command that prints a greeting to the user:

command:
  name: greet
  description: Command to greet the user

Arguments are values passed to the command that contain information required for the task. These can be optional but must be passed in order.