jnc task
Manages tasks defined in the workspace manifest. Tasks are commands that run inside the workspace environment and can depend on other tasks.Usage
Subcommands
add
Add a new task to the manifest.
| Option | Short | Description |
|---|---|---|
--depends-on | Tasks that must run before this task (comma-separated or repeated) | |
--platform | -p | Limit the task to specific platforms |
--feature | -f | Add the task to a specific feature |
--cwd | Set the working directory for the task | |
--env | Set environment variables (format: KEY=VALUE) | |
--description | A human-readable description of the task | |
--clean-env | Run the task with a clean environment (no inherited variables) |
remove
Remove one or more tasks from the manifest.
| Option | Short | Description |
|---|---|---|
--platform | -p | Remove a platform-specific task |
--feature | -f | Remove a task from a specific feature |
alias
Create a task alias that depends on other tasks. An alias has no command of its own — it simply runs its dependencies.
| Option | Short | Description |
|---|---|---|
--platform | -p | Limit the alias to specific platforms |
--feature | -f | Add the alias to a specific feature |
--description | A human-readable description of the alias |
list
List all tasks defined in the manifest.
| Option | Short | Description |
|---|---|---|
--environment | -e | Show tasks for a specific environment |
--summary | -s | Show a condensed summary |
Global Options
| Option | Short | Description |
|---|---|---|
--manifest-path | -m | Path to pixi.toml or pyproject.toml |