npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@fetch-client/cli

v1.2.2

Published

CLI tool to run and manage Fetch Client API collections from the terminal

Readme

Fetch Client CLI

Run, test, and automate your Fetch Client requests directly from the terminal.

Fetch Client CLI is the official command-line interface for the Fetch Client VS Code extension. It allows you to execute requests, collections, and folders without opening VS Code, making it ideal for automation, CI/CD pipelines, and scripting.

❓ Why use Fetch Client CLI?

Many development workflows need API testing outside an IDE. Fetch Client CLI lets you:

  • 🖥️ Cross-platform (Windows, macOS, and Linux)
  • ▶️ Run requests, folders, collections, all collections, or exported collections
  • 📦 Execute exported collections without requiring the Fetch Client database
  • ⚡ Performance testing with configurable virtual users and load models
  • 📊 Data-driven testing using CSV or JSON data files
  • 🧪 Execute API tests and validate responses
  • 📦 Execute exported collections without requiring the Fetch Client database
  • 🔗 Automatically execute Pre-Requests
  • ⚙️ Configure and override variable sets
  • 🔄 Import and execute raw cURL commands
  • 📄 Generate JSON, XML, HTML, CSV, and NUnit reports
  • 🤖 CI/CD friendly with appropriate exit codes
  • 🚀 Lightweight with no additional server or services required

You don't need separate collections for your IDE and your automation. The CLI works directly with your existing Fetch Client database. The CLI and the VS Code extension share the same database. Any change you make in one shows up in the other right away.

NEW FEATURE

Running an exported collection is completely self-contained.

  • ✅ No Fetch Client database required
  • ✅ No VS Code extension required
  • ✅ Perfect for CI/CD pipelines
  • ✅ Easy to share with teammates
  • ✅ Great for running APIs on build agents or remote machines

✨ Key Features

| Feature | What it does | | ---------------------------- | ---------------------------------------------------------------------------- | | Run Requests | Runs a single request | | Run Folders | Runs every request inside a folder | | Run Collections | Runs an entire collection | | Run Exported Collections | Executes requests directly from exported collection JSON files | | Variables | Use global, collection, and environment variables | | Pre-Requests | Runs dependent (PreFetch) requests automatically before the main request | | Tests | Validates API responses using test assertions | | Performance Testing | Load test requests, folders, and collections with configurable virtual users | | Data-Driven Testing | Execute requests repeatedly using CSV or JSON data files | | Report Export | Export reports in JSON, CSV, HTML, XML, and NUnit formats | | cURL Support | Execute raw cURL commands directly from the CLI | | CI/CD Support | Works with GitHub Actions, Azure DevOps, Jenkins, GitLab CI, and more | | Cross Platform | Runs on Windows, macOS, and Linux |

⚙️ How It Works

The CLI reads the same database as the VS Code extension. This means you can switch between the two anytime - nothing needs to be copied or re-created.

                    +----------------------+
                    |    Fetch Client       |
                    |  VS Code Extension    |
                    +----------+-----------+
                              |
                    Shared Database Files
                              |
            +------------------+------------------+
            |                                     |
+-----------v-----------+              +----------v-----------+
|   Fetch Client CLI     |              |   VS Code Extension   |
|                        |              |                       |
| Run Requests           |              | Create Requests       |
| Run Collections        |              | Edit Requests         |
| Run Performance Tests  |              | Manage Variables      |
| Generate Reports       |              | Organize Collections  |
+------------------------+              +-----------------------+

---

## Installation

### npm

```bash
npm install -g @fetch-client/cli

Verify the installation:

fc-cli --version

Quick Start

Run a request:

fc-cli run --req "Get Users"

Run a folder:

fc-cli run --fol "User APIs"

Run a collection:

fc-cli run --col "REST APIs"

Run all collections:

fc-cli run --col --all

Documentation

Complete documentation is available at Fetch Client CLI

Topics include:

  • Installation
  • Commands
  • Variables
  • Reports
  • CI/CD Integration
  • Examples
  • Troubleshooting

VS Code Extension

Create, organize, and test APIs visually using the Fetch Client VS Code extension.

Marketplace:

https://marketplace.visualstudio.com/items?itemName=FetchClient.fetch-client


CI/CD

Fetch Client CLI can be integrated into:

  • GitHub Actions
  • Azure DevOps
  • Jenkins
  • GitLab CI

Example:

- name: Install Fetch Client CLI
  run: npm install -g @fetch-client/cli

- name: Execute API Tests
  run: fetch-client run --collection "Regression"

Requirements

  • Node.js 18+
  • Fetch Client data directory (created by the Fetch Client VS Code extension)

Support

  • Documentation: https://fetchclient.github.io/
  • Issues: https://github.com/Ganesan-Chandran/vscode-fetch-client/issues

Contributing

Contributions are welcome!

  1. Fork the repository
  2. Create a feature branch
  3. Commit your changes
  4. Open a Pull Request

📜 License

See the license details.


✒️ Author

Ganesan Chandran