pixi, pixi-{config,global,project,task}: add page (#13249)

This commit is contained in:
Gin 2024-07-11 03:19:55 +05:30 committed by GitHub
parent 5bb7f0a295
commit 78bc958905
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 128 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# pixi config
> Manage the configuration file.
> More information: <https://pixi.sh/latest/reference/cli/#config>.
- Edit the configuration file:
`pixi config edit`
- List all configurations:
`pixi config list`
- Prepend a value to a list configuration key:
`pixi config prepend {{key}} {{value}}`
- Append a value to a list configuration key:
`pixi config append {{key}} {{value}}`
- Set a configuration key to a value:
`pixi config set {{key}} {{value}}`
- Unset a configuration key:
`pixi config unset {{key}}`

View File

@ -0,0 +1,24 @@
# pixi global
> Manage global packages.
> More information: <https://pixi.sh/latest/reference/cli/#global>.
- Install a package globally and add to path:
`pixi global install {{package1 package2 ...}}`
- Uninstall a package globally:
`pixi global remove {{package1 package2 ...}}`
- List all globally installed packages:
`pixi global list`
- Update a globally installed package:
`pixi global upgrade {{package}}`
- Update all globally installed packages:
`pixi global upgrade-all`

View File

@ -0,0 +1,24 @@
# pixi project
> Modify the project configuration file.
> More information: <https://pixi.sh/latest/reference/cli/#project>.
- Manage project channels:
`pixi project channel {{command}}`
- Manage project description:
`pixi project description {{command}}`
- Manage project platform:
`pixi project platform {{command}}`
- Manage project version:
`pixi project version {{command}}`
- Manage project environment:
`pixi project environment {{command}}`

20
pages/common/pixi-task.md Normal file
View File

@ -0,0 +1,20 @@
# pixi task
> Manage tasks in the project environment.
> More information: <https://pixi.sh/latest/reference/cli/#task>.
- Create a new task:
`pixi task add {{task_name}} {{task_command}}`
- List all tasks in the project:
`pixi task list`
- Remove a task:
`pixi task remove {{task_name}}`
- Create an alias for a task:
`pixi task alias {{alias_name}} {{task1 task2 ...}}`

32
pages/common/pixi.md Normal file
View File

@ -0,0 +1,32 @@
# pixi
> Developer Workflow and Environment Management for projects.
> More information: <https://pixi.sh>.
- Initialize a new project:
`pixi init {{path/to/project}}`
- Add project dependencies:
`pixi add {{dependency1 dependency2 ...}}`
- Start a pixi shell in the project environment:
`pixi shell`
- Run a task in the project environment:
`pixi run {{task}}`
- Manage tasks in the project environment:
`pixi task {{command}}`
- Print the help message:
`pixi {{command}} --help`
- Clean environment and task cache:
`pixi clean`