← 返回命令列表

Linux command

pixi-task 命令

安全

权限或系统影响较大,执行前请核对目标。

常用示例

Add task to project

pixi task add [name] [command]

List tasks

pixi task list

Remove task

pixi task remove [name]

Add task with alias

pixi task alias [name] [existing_task]

说明

pixi task manages project tasks. Tasks are defined commands that can be run within the project environment. Similar to npm scripts or Makefile targets. Supports dependencies between tasks.

参数

add _name_ _command_
Add new task.
list
List all tasks.
remove _name_
Remove task.
alias _name_ _target_
Create task alias.
--depends-on _tasks_
Task dependencies.

FAQ

What is the pixi-task command used for?

pixi task manages project tasks. Tasks are defined commands that can be run within the project environment. Similar to npm scripts or Makefile targets. Supports dependencies between tasks.

How do I run a basic pixi-task example?

Run `pixi task add [name] [command]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does add _name_ _command_ do in pixi-task?

Add new task.