-
Notifications
You must be signed in to change notification settings - Fork 466
docs: refactor #3265
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
docs: refactor #3265
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
023f3fa
Start
Hofer-Julian b57b7d8
Remove frontmatter
Hofer-Julian add25f1
Shift around more chapters
Hofer-Julian e93b34a
Remove examples
Hofer-Julian 4daef96
Move around more files
Hofer-Julian e5a0aef
Adding socials
Hofer-Julian e137e96
Rename basic usage to getting started
Hofer-Julian 6a39618
Fix broken links
Hofer-Julian 01be0ca
Move part of the installation instructions to separate file
Hofer-Julian b75b84d
Rearrange a bit more
Hofer-Julian 1750421
Refactor frontpage
Hofer-Julian f7cd7ca
Replace `[project]` with `[workspace]`
Hofer-Julian 653f5b0
Restructuring
Hofer-Julian ce02de3
Extend pixi projects docs
Hofer-Julian 75aea1b
Extend introduction and adapt tests
Hofer-Julian ebf9268
Getting started
Hofer-Julian 3a7def6
Add heading
Hofer-Julian 8dcdfc1
Extend index page
Hofer-Julian 424d940
A bit more in index.md
Hofer-Julian 38bdfc0
Continue with getting started
Hofer-Julian 0b03485
Add emojis to index.md
Hofer-Julian 6d95153
Finish getting started
Hofer-Julian 79b3652
Extend installation docs
Hofer-Julian 7774c91
More installation docs
Hofer-Julian 8f4a6bc
Update docs/index.md
Hofer-Julian 3f45365
Update snapshots
Hofer-Julian ed32db2
Update docs/index.md
Hofer-Julian b3da82c
Merge branch 'main' into docs/refactor
Hofer-Julian File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,190 @@ | ||
| # Installation | ||
|
|
||
| To install `pixi` you can run the following command in your terminal: | ||
|
|
||
| === "Linux & macOS" | ||
| ```bash | ||
| curl -fsSL https://pixi.sh/install.sh | bash | ||
| ``` | ||
|
|
||
| The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `~/.pixi/bin`. | ||
| The script will also extend the `PATH` environment variable in the startup script of your shell to include `~/.pixi/bin`. | ||
| This allows you to invoke `pixi` from anywhere. | ||
|
|
||
| === "Windows" | ||
| ```powershell | ||
| powershell -ExecutionPolicy ByPass -c "irm -useb https://pixi.sh/install.ps1 | iex" | ||
| ``` | ||
|
|
||
| The above invocation will automatically download the latest version of `pixi`, extract it, and move the `pixi` binary to `LocalAppData/pixi/bin`. | ||
| The command will also add `LocalAppData/pixi/bin` to your `PATH` environment variable, allowing you to invoke `pixi` from anywhere. | ||
|
|
||
| !!! tip | ||
|
|
||
| You might need to restart your terminal or source your shell for the changes to take effect. | ||
|
|
||
| ## Update | ||
|
|
||
| Updating is as simple as installing, rerunning the installation script gets you the latest version. | ||
|
|
||
| ```shell | ||
| pixi self-update | ||
| ``` | ||
| Or get a specific pixi version using: | ||
| ```shell | ||
| pixi self-update --version x.y.z | ||
| ``` | ||
|
|
||
| !!! note | ||
| If you've used a package manager like `brew`, `mamba`, `conda`, `paru` etc. to install `pixi` | ||
| you must use the built-in update mechanism. e.g. `brew upgrade pixi`. | ||
|
|
||
|
|
||
| ## Alternative Installation Methods | ||
|
|
||
| Although we recommend installing pixi through the above method we also provide additional installation methods. | ||
|
|
||
| ### Homebrew | ||
|
|
||
| Pixi is available via homebrew. To install pixi via homebrew simply run: | ||
|
|
||
| ```shell | ||
| brew install pixi | ||
| ``` | ||
|
|
||
| ### Windows Installer | ||
|
|
||
| We provide an `msi` installer on [our GitHub releases page](https://github.com/prefix-dev/pixi/releases/latest). | ||
| The installer will download pixi and add it to the path. | ||
|
|
||
| ### Winget | ||
|
|
||
| ``` | ||
| winget install prefix-dev.pixi | ||
| ``` | ||
|
|
||
| ### Install From Source | ||
|
|
||
| pixi is 100% written in Rust, and therefore it can be installed, built and tested with cargo. | ||
| To start using pixi from a source build run: | ||
|
|
||
| ```shell | ||
| cargo install --locked --git https://github.com/prefix-dev/pixi.git pixi | ||
| ``` | ||
|
|
||
| We don't publish to `crates.io` anymore, so you need to install it from the repository. | ||
| The reason for this is that we depend on some unpublished crates which disallows us to publish to `crates.io`. | ||
|
|
||
| or when you want to make changes use: | ||
|
|
||
| ```shell | ||
| cargo build | ||
| cargo test | ||
| ``` | ||
|
|
||
| If you have any issues building because of the dependency on `rattler` checkout | ||
| its [compile steps](https://github.com/conda/rattler/tree/main#give-it-a-try). | ||
|
|
||
|
|
||
| ## Installer Script Options | ||
|
|
||
| === "Linux & macOS" | ||
|
|
||
| The installation script has several options that can be manipulated through environment variables. | ||
|
|
||
| | Variable | Description | Default Value | | ||
| |----------------------|------------------------------------------------------------------------------------|-----------------------| | ||
| | `PIXI_VERSION` | The version of pixi getting installed, can be used to up- or down-grade. | `latest` | | ||
| | `PIXI_HOME` | The location of the binary folder. | `$HOME/.pixi` | | ||
| | `PIXI_ARCH` | The architecture the pixi version was built for. | `uname -m` | | ||
| | `PIXI_NO_PATH_UPDATE`| If set the `$PATH` will not be updated to add `pixi` to it. | | | ||
| | `TMP_DIR` | The temporary directory the script uses to download to and unpack the binary from. | `/tmp` | | ||
|
|
||
| For example, on Apple Silicon, you can force the installation of the x86 version: | ||
| ```shell | ||
| curl -fsSL https://pixi.sh/install.sh | PIXI_ARCH=x86_64 bash | ||
| ``` | ||
| Or set the version | ||
| ```shell | ||
| curl -fsSL https://pixi.sh/install.sh | PIXI_VERSION=v0.18.0 bash | ||
| ``` | ||
|
|
||
| === "Windows" | ||
|
|
||
| The installation script has several options that can be manipulated through environment variables. | ||
|
|
||
| | Variable | Environment variable | Description | Default Value | | ||
| |------------------|----------------------|-----------------------------------------------------------------------------------|-----------------------------| | ||
| | `PixiVersion` | `PIXI_VERSION` |The version of pixi getting installed, can be used to up- or down-grade. | `latest` | | ||
| | `PixiHome` | `PIXI_HOME` | The location of the installation. | `$Env:USERPROFILE\.pixi` | | ||
| | `NoPathUpdate` | | If set, the `$PATH` will not be updated to add `pixi` to it. | | | ||
|
|
||
| For example, set the version using: | ||
|
|
||
| ```powershell | ||
| iwr -useb https://pixi.sh/install.ps1 | iex -Args "-PixiVersion v0.18.0" | ||
| ``` | ||
|
|
||
|
|
||
| ## Autocompletion | ||
|
|
||
| To get autocompletion follow the instructions for your shell. | ||
| Afterwards, restart the shell or source the shell config file. | ||
|
|
||
|
|
||
| ### Bash (default on most Linux systems) | ||
|
|
||
| Add the following to the end of `~/.bashrc`: | ||
|
|
||
| ```bash title="~/.bashrc" | ||
|
|
||
| eval "$(pixi completion --shell bash)" | ||
| ``` | ||
| ### Zsh (default on macOS) | ||
|
|
||
| Add the following to the end of `~/.zshrc`: | ||
|
|
||
|
|
||
| ```zsh title="~/.zshrc" | ||
|
|
||
| autoload -Uz compinit && compinit # redundant with Oh My Zsh | ||
| eval "$(pixi completion --shell zsh)" | ||
| ``` | ||
|
|
||
| ### PowerShell (pre-installed on all Windows systems) | ||
|
|
||
| Add the following to the end of `Microsoft.PowerShell_profile.ps1`. | ||
| You can check the location of this file by querying the `$PROFILE` variable in PowerShell. | ||
| Typically the path is `~\Documents\PowerShell\Microsoft.PowerShell_profile.ps1` or | ||
| `~/.config/powershell/Microsoft.PowerShell_profile.ps1` on -Nix. | ||
|
|
||
| ```pwsh | ||
| (& pixi completion --shell powershell) | Out-String | Invoke-Expression | ||
| ``` | ||
|
|
||
| ### Fish | ||
|
|
||
| Add the following to the end of `~/.config/fish/config.fish`: | ||
|
|
||
| ```fish title="~/.config/fish/config.fish" | ||
|
|
||
| pixi completion --shell fish | source | ||
| ``` | ||
|
|
||
| ### Nushell | ||
|
|
||
| Add the following to your Nushell config file (find it by running `$nu.config-path` in Nushell): | ||
|
|
||
| ```nushell | ||
| mkdir $"($nu.data-dir)/vendor/autoload" | ||
| pixi completion --shell nushell | save --force $"($nu.data-dir)/vendor/autoload/pixi-completions.nu" | ||
| ``` | ||
|
|
||
| ### Elvish | ||
|
|
||
| Add the following to the end of `~/.elvish/rc.elv`: | ||
|
|
||
| ```elv title="~/.elvish/rc.elv" | ||
|
|
||
| eval (pixi completion --shell elvish | slurp) | ||
| ``` | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.