Skip to main content

Understanding CLI command parts in under 5 min

This page aims to briefly explain the different parts a command is built up from, such as Arguments, Options, (Sub-)Commands, etc.

docker buildx build [OPTIONS] PATH | URL | -

The above given command can be split into multiple pieces that represent a single part each like follows:

namedescriptionnote
dockerinvocation name of the programoften also refered to as 'program name'
buildxcommandthe immediate command instruction to execute
buildsubcommandnot necessarily given, depends on app
[OPTIONS]options for the cli programadditional config, e.g. verbose/debug mode
PATH | URL | -arguments that are required for the command/subcommand combination to execute.