docs/reference/cli/pixi/task/add.md
Add a command to the workspace
--8<-- "docs/reference/cli/pixi/task/add_extender:description"
pixi task add [OPTIONS] <NAME> <COMMAND>...
<NAME></a>
: Task namerequired: true
<COMMAND></a>
: One or more commands to actually executeMay be provided more than once.
required: true
--depends-on <DEPENDS_ON></a>
: Depends on these other commandsMay be provided more than once.
--platform (-p) <PLATFORM></a>
: The platform for which the task should be added--feature (-f) <FEATURE></a>
: The feature for which the task should be added--cwd <CWD></a>
: The working directory relative to the root of the workspace--env <ENV></a>
: The environment variable to set, use --env key=value multiple times for more than one variableMay be provided more than once.
--default-environment <DEFAULT_ENVIRONMENT></a>
: Add a default environment for the task--description <DESCRIPTION></a>
: A description of the task to be added--clean-env</a>
: Isolate the task from the shell environment, and only use the pixi environment to run the task--arg <ARGS></a>
: The arguments to pass to the taskMay be provided more than once.
--8<-- "docs/reference/cli/pixi/task/add_extender:example"