Skip to content

docs: document pixi add channel::package usage example#5893

Open
darilsobze wants to merge 3 commits intoprefix-dev:mainfrom
darilsobze:docs/pixi-add-channel-example
Open

docs: document pixi add channel::package usage example#5893
darilsobze wants to merge 3 commits intoprefix-dev:mainfrom
darilsobze:docs/pixi-add-channel-example

Conversation

@darilsobze
Copy link
Copy Markdown

Description

This PR documents how to install a dependency from a specific channel using the channel::package syntax with pixi add.

Pixi already supports package-scoped channels, but this usage was not discoverable from the CLI documentation. The added example shows how to install a single package from a non-default channel without permanently adding that channel to the workspace.

Fixes #{4231}

How Has This Been Tested?

i verified that the example command works as described

TODO

-->

### Checklist:
<!--- Remove the non relevant items. --->
- [ X] I have made corresponding changes to the documentation

pixi add numpy # (1)!
pixi add numpy pandas "pytorch>=1.8" # (2)!
pixi add "numpy>=1.22,<1.24" # (3)!
pixi add https://repo.prefix.dev/bioconda::htslib # (3a)!
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
pixi add https://repo.prefix.dev/bioconda::htslib # (3a)!
pixi add https://prefix.dev/bioconda::htslib # (3a)!

While repo works it's a deprecated definition.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And the 3a doesn't work it has to be 4, so all the other values have to be moved.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so what should i do now? could u please explain more clearly?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it item 4 and make 4 -> 5 etc.

Copy link
Copy Markdown
Contributor

@ruben-arts ruben-arts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can test this by running pixi run docs it shows you the dev version of the docs website.

@ruben-arts ruben-arts changed the title updated docs (pixi add): document channel::package usage example docs: document pixi add channel::package usage example Apr 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants