Installation
Brioche is distributed as a portable executable that can be dropped in and run easily. You don’t need root permissions to install Brioche.
Automatic installation
Section titled “Automatic installation”Linux (x86-64)
curl --proto '=https' --tlsv1.2 -sSfL 'https://brioche.dev/install.sh' | shThis script will install Brioche under ~/.local/bin, which is commonly included by default in the $PATH for your shell.
To view the source of the installer script or for more details, check the brioche-installer repository.
Installation options
Section titled “Installation options”The installer script supports passing extra environment variables to customize the installation. You can either set each of these environment variables before running the installer (e.g. export BRIOCHE_INSTALL_VERSION=nightly), or prepend it before the sh command (e.g. curl ... | BRIOCHE_INSTALL_VERSION=nightly sh).
BRIOCHE_INSTALL_VERSION: Specify a version or channel of Brioche to install:stable,nightly,v0.1.6, etc. (Default:stable)BRIOCHE_INSTALL_ROOT: The root directory for the installer itself. Brioche versions will be extracted into this directory. (Default:$HOME/.local/share/brioche-install)BRIOCHE_INSTALL_BIN_DIR: The directory to place a symlink to the installed Brioche version. This directory should ideally be in your$PATHand will get created if it doesn’t exist. (Default:$HOME/.local/bin)BRIOCHE_INSTALL_VERIFY_SIGNATURE: By default, the installer will validate the signature of the release tarball. Set toautoto skip verification if the command(s) required for validation (ssh-keygen) aren’t installed, orfalseto always skip. (Default:true)
Manual installation
Section titled “Manual installation”Rather than running the installation script, you can also manually install Brioche by downloading the latest release under the “Releases” section of Brioche’s GitHub repo.
Linux
- Download the latest release tarball for your architecture from the “Releases” page, e.g.
brioche-x86_64-linux.tar.xz - Create a directory to hold the installation:
mkdir -p ~/.local/share/brioche-install/brioche/stable - Extract the tarball:
tar -xJf brioche-x86_64-linux.tar.xz --strip-components=1 -C ~/.local/share/brioche-install/brioche/stable - Create a symlink for the current version:
ln -s stable ~/.local/share/brioche-install/brioche/current - Create a symlink to main Brioche binary in your
$PATHsuch as~/.local/bin:ln -s ~/.local/share/brioche-install/brioche/current/bin/brioche ~/.local/bin/brioche
Editor support
Section titled “Editor support”Visual Studio Code
Section titled “Visual Studio Code”You can install the “Brioche” extension from the Visual Studio Marketplace (the extension ID is brioche-dev.brioche-vscode)
The extension requires that the brioche CLI tool is available on your $PATH, so make sure you install Brioche first!
Warning: Brioche’s LSP integration is still very experimental! You will see some errors in day-to-day use. Especially the following:
- Adding dependencies will show up with an error message until the file is saved. Sometimes, you may need to reload the extension by running “Brioche LSP: Restart LSP Server” from the Command Palette.
- The LSP will sometimes crash without automatically restarting, leading to lots of error notifications. Re-opening VS Code or running “Brioche LSP: Restart LSP Server” will often fix this.
Updating
Section titled “Updating”Once Brioche is installed, you can automatically update it by running the following command:
brioche self-updateManually updating
Section titled “Manually updating”For versions of Brioche that are too old or were installed without support for automatic updates, you may need to update by manually re-installing Brioche. In most cases, you should be able to follow the instructions from the section “Automatic installation”.
Uninstallation
Section titled “Uninstallation”Brioche uses the following paths on Linux by default:
~/.local/share/brioche-install: The main path where each version of Brioche is installed to~/.local/bin/brioche: (A symlink to) the Brioche CLI tool~/.local/share/brioche/installed: All of the packages installed withbrioche install~/.local/share/brioche: The full cache of all build artifacts and outputs~/.config/brioche: Custom Brioche configuration
Here’s a script to uninstall all of them manually:
chmod -R +w ~/.local/share/brioche && rm -rf ~/.local/share/briocherm ~/.local/bin/briocherm -r ~/.local/share/brioche-installrm -r ~/.config/brioche