Step 2: Install CLI

A tutorial on how to install the Packhunt CLI tool.


To create a solution, you need to create a configuration and upload it to the Packhunt platform. To upload the solution, you need to install the tool called the “Packhunt Command Line Interface” or Packhunt CLI.


1. Open your terminal

The CLI is executed from a terminal (the black window where you can execute text commands). We suggest using Visual Studio Code for editing configuration files and for using a terminal.

To open a terminal window in VSCode:

  • In VSCode, open Terminal>New Terminal
  • Select the shell, by clicking the drop-down in the top-right corner of the terminal window.
  • Select PowerShell for Windows and bash for Mac and Linux.

For Windows, the terminal should look like the image below.

❗ Depending on your operating system, select the correct type of terminal. If you do not select the correct terminal type, subsequent commands may not work.

2. Install the Packhunt CLI

  • In the VScode terminal, execute the command to install the CLI.

    On Windows (Powershell):

    Invoke-Expression ((New-Object System.Net.WebClient).DownloadString(''))

    On MacOS:

    /bin/bash -c "$(curl -fsSL"

    On Linux:

    /bin/bash -c "$(curl -fsSL"
  • Make sure you see the message:” Packhunt successfully installed 🚀, run 'ph' to get started. This indicates that the CLI is now installed and ready for use.

3. Verify installation

To check if the CLI is correctly installed on your machine:

  • Type ph in the terminal.
  • Run the command.
  • It should return Usage: ph [command] <options> and a list of ph commands.

Next Steps

Log in with your Packhunt account.