📦 Installation
Fetch Client CLI is an npm package. You can install it on any system that runs Node.js.
Once installed, you can use the fc-cli command in your terminal to run requests, collections and tests.
📋 Prerequisites
Check that your system meets these requirements before you install.
| Requirement | Version |
|---|---|
| Node.js | 18.x or later |
| npm | 9.x or later |
| Operating System | Windows, macOS, or Linux |
Check your current versions:
node --version
npm --version
Use the latest LTS version of Node.js for the best compatibility and performance.
⬇️ Install Fetch Client CLI
Install the latest version globally with npm:
npm install -g @fetch-client/cli
Check that it installed correctly:
fc-cli --version
Example output:
1.0.0
🔖 Install a Specific Version
To install a specific version, run:
npm install -g @fetch-client/cli@1.0.0
This is useful if your project needs a particular CLI version.
⬆️ Update the CLI
Update to the latest version:
npm update -g @fetch-client/cli
Or reinstall the latest version directly:
npm install -g @fetch-client/cli@latest
Then check the version:
fc-cli --version
📍 Find the Installation Path
- Windows
- macOS
- Linux
where fc-cli
which fc-cli
which fc-cli
📂 Check the npm Global Directory
Sometimes the CLI installs correctly, but your system's PATH doesn't include the npm global folder.
Check where npm installs global packages:
npm root -g
Example:
C:\Users\<username>\AppData\Roaming\npm\node_modules
Check where npm puts the executable:
npm bin -g
Example:
C:\Users\<username>\AppData\Roaming\npm
Make sure this folder is in your system's PATH.