# Install the Postman CLI
Install the [Postman CLI](/docs/postman-cli/postman-cli-overview/) by following the instructions for your operating system below.
The Postman CLI supports the same system requirements as the Postman desktop app. For a complete list of requirements, see [Install and update Postman](/docs/getting-started/installation/installation-and-updates/).
## npm installation for Windows, macOS, and Linux
If you have Node.js and npm installed on your system, you can run the following command. This will download and install the Postman CLI binary, making the `postman` command available in your terminal.
```bash
npm install -g postman-cli
```
Alternatively, you can also install the Postman CLI binary with a script specific to [Windows](#windows-installation). You can also use [curl to install the Postman CLI binary](#macos-linux-and-windows-subsystem-for-linux-wsl-installation) on systems running macOS, Linux, or Windows Subsystem for Linux (WSL).
Linux support excludes Alpine Linux distributions due to libc compatibility requirements.
## Windows installation
Run the following command to install the Postman CLI for Windows. This will download and run an install script. The script creates a `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` directory if it doesn't exist yet, then installs the `postman` binary there.
```powershell
powershell.exe -NoProfile -InputFormat None -ExecutionPolicy AllSigned -Command "[System.Net.ServicePointManager]::SecurityProtocol = 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://dl-cli.pstmn.io/install/win64.ps1'))"
```
## macOS, Linux, and Windows Subsystem for Linux (WSL) installation
Run the following command to install the Postman CLI on systems running macOS, Linux, or Windows Subsystem for Linux (WSL). This will download and run a unified install script that detects your OS and architecture. The install script creates a `/usr/local/bin` directory if it doesn't exist yet, then installs the `postman` binary there.
```bash
curl -o- "https://dl-cli.pstmn.io/install/unix.sh" | sh
```
## Update your Postman CLI installation
To update your Postman CLI installation to the latest version, run the same command you used to install it. The new version will overwrite the earlier version. For details about the latest changes and features, see the [Postman CLI release notes](https://www.postman.com/release-notes/postman-cli/).
## Uninstall Postman CLI
If you installed the Postman CLI with npm, you can uninstall it with the following command:
```bash
npm uninstall -g postman-cli
```
If you installed the Postman CLI with any method other than npm, you can uninstall it by deleting the `postman` binary. For Windows systems, the binary is in `%USERPROFILE%\AppData\Local\Microsoft\WindowsApps` by default. For macOS, Linux, and WLS systems, the binary is in `/usr/local/bin` by default.
## Troubleshooting
If you’ve installed the Postman CLI using both npm and the curl-based script, your system may have two copies of the binary. Which binary is active depends on the order of directories in your `PATH` environment variable.
To check which binary is active, do the following:
1. Run one of the following commands, depending on your system:
* For macOS, Linux, or WSL, run `which postman`.
* For Windows, run `where postman`.
2. Run `postman --version`.
If you have two copies of the binary in your `PATH` environment variable, you can resolve the conflict by [uninstalling](#uninstall-postman-cli) one of the binaries.