This guide will show you
- How to set up Paket for a specific repository.
- How to install Paket for Windows, Linux, or macOS.
- How to ensure
paket.exe
is available via command line and other methods of use. - Install editor support.
- Set up shell completion for Paket commands.
Paket can be used a global tool
dotnet tool install --global Paket
With the .NET Core 3 CLI, you can now use Local Tools.
dotnet new tool-manifest
dotnet tool install Paket
Don't forget to commit dotnet-tools.json
to your source control.
Now you can run Paket with:
dotnet paket --help
The most common use of Paket is as a command line tool inside your project repository.
- Create a
.paket
directory in the root of your solution. - Download the latest
paket.bootstrapper.exe
into that directory. - Run
.paket/paket.bootstrapper.exe
. It will download the latestpaket.exe
.linux/osx: Run
mono .paket/paket.bootstrapper.exe
- Commit
.paket/paket.bootstrapper.exe
into your repository and add.paket/paket.exe
to your.gitignore
file.
You can now run Paket from the command line:
.paket/paket.exe install
If you want to install Paket as a system-wide tool then the following guide will help you to get started.
The first step for any operating system is to clone the Paket repository locally.
git clone [email protected]:fsprojects/Paket.git
Then follow the instructions for building and installing for your preferred operating system.
For Linux the easiest way to get things installed is to clone the repository and run the build and install scripts as shown below.
./build.sh
After that completes execute the install, to install Paket as a command line utility.
./install.sh
The install.sh
script will add Paket as a command line option into bash and
most other shells available. If you are using a unique shell and run into
problems, please post an issue so we can take a look.
For macOS the build and installation process is as follows.
./build.sh
After that completes execute the install, to install Paket as a command line utility.
./install.sh
Please install per repository.
Once the basic installation is complete on your operating system of choice it is often very useful to add some tools to your shell/IDE/Text Editor of choice.
For next steps check out the Getting Started section.