Add Custom Commands
Atmos can be easily extended to support any number of custom CLI commands. For example, imagine you wanted to add a command
like atmos reload-database
, you can do that with custom commands.
Custom commands are defined in the commands
section in atmos.yaml
CLI configuration file.
TIP:
Refer to Atmos Custom Commands for more information about Atmos Custom Commands
In this Quick Start guide, we'll define two custom commands to list the Atmos stacks in the infrastructure and the components in the stacks.
atmos.yaml
Run the following Atmos command to get the current GitHub status.
Run the following Atmos command to retrieve your current public IP address.
Want to go deeper on this topic?
Custom commands can accept flags, arguments, and even advanced templating. Learn More