---
title: pixi task add
---
<!--- This file is autogenerated. Do not edit manually! -->
# [pixi](../../pixi.md) [task](../task.md) add

Add a command to the workspace

--8<-- "docs/reference/cli/pixi/task/add_extender:description"

## Usage
```
pixi task add [OPTIONS] <NAME> <COMMAND>...
```

## Arguments
- <a id="arg-<NAME>" href="#arg-<NAME>">`<NAME>`</a>
:  Task name
<br>**required**: `true`
- <a id="arg-<COMMAND>" href="#arg-<COMMAND>">`<COMMAND>`</a>
:  One or more commands to actually execute
<br>May be provided more than once.
<br>**required**: `true`

## Options
- <a id="arg---depends-on" href="#arg---depends-on">`--depends-on <DEPENDS_ON>`</a>
:  Depends on these other commands
<br>May be provided more than once.
- <a id="arg---platform" href="#arg---platform">`--platform (-p) <PLATFORM>`</a>
:  The platform for which the task should be added
- <a id="arg---feature" href="#arg---feature">`--feature (-f) <FEATURE>`</a>
:  The feature for which the task should be added
- <a id="arg---cwd" href="#arg---cwd">`--cwd <CWD>`</a>
:  The working directory relative to the root of the workspace
- <a id="arg---env" href="#arg---env">`--env <ENV>`</a>
:  The environment variable to set, use --env key=value multiple times for more than one variable
<br>May be provided more than once.
- <a id="arg---default-environment" href="#arg---default-environment">`--default-environment <DEFAULT_ENVIRONMENT>`</a>
:  Add a default environment for the task
- <a id="arg---description" href="#arg---description">`--description <DESCRIPTION>`</a>
:  A description of the task to be added
- <a id="arg---clean-env" href="#arg---clean-env">`--clean-env`</a>
:  Isolate the task from the shell environment, and only use the pixi environment to run the task
- <a id="arg---arg" href="#arg---arg">`--arg <ARGS>`</a>
:  The arguments to pass to the task
<br>May be provided more than once.

--8<-- "docs/reference/cli/pixi/task/add_extender:example"
