New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

postcli-dev

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcli-dev

PostCLI - Terminal API Request Tester

latest
Source
npmnpm
Version
1.0.2
Version published
Weekly downloads
1
-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

🚀 PostCLI-dev

PostCLI is a lightweight yet powerful Postman-like CLI tool for testing APIs directly from your terminal. It supports all major HTTP methods (GET, POST, PUT, DELETE, PATCH, HEAD, OPTIONS), environment management, endpoint saving, workflow chaining, and history tracking — all with a modern, colorful, and interactive terminal UI.

✨ Key Features

  • Full HTTP support: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS
  • Save and reuse endpoints easily
  • Manage environment variables dynamically ({{VAR}} syntax)
  • Track request history and reuse previous calls
  • Save responses for later replay
  • Beautiful terminal UX with ASCII banners, colors, and interactive prompts
  • 100% Node.js-powered — fast and cross-platform

⚙️ Installation

Install PostCLI-dev globally from npm:

npm install -g postcli-dev

Once installed, run:

postcli

to launch the CLI.

PostCLI Documentation

PostCLI is a powerful CLI tool to send HTTP requests, manage endpoints, and handle environment variables similar to Postman.

HTTP Requests

CommandDescriptionExample
GETSend a GET request to a URL or saved endpointpostcli GET https://jsonplaceholder.typicode.com/posts/1
postcli GET {{BASEURL}}/posts/1
POSTSend a POST request with JSON, objects, arrays, or file uploadspostcli POST https://jsonplaceholder.typicode.com/posts
postcli POST {{BASEURL}}/posts
PUTSend a PUT request with JSON, objects, arrays, or file uploadspostcli PUT https://jsonplaceholder.typicode.com/posts/1
postcli PUT {{BASEURL}}/posts/1
PATCHSend a PATCH request with JSON, objects, arrays, or file uploadspostcli PATCH https://jsonplaceholder.typicode.com/posts/1
postcli PATCH {{BASEURL}}/posts/1
DELETESend a DELETE requestpostcli DELETE https://jsonplaceholder.typicode.com/posts/1
postcli DELETE {{BASEURL}}/posts/1
HEADSend a HEAD request to get headers onlypostcli HEAD https://jsonplaceholder.typicode.com/posts
postcli HEAD {{BASEURL}}/posts
OPTIONSSend an OPTIONS requestpostcli OPTIONS https://jsonplaceholder.typicode.com/posts
postcli OPTIONS {{BASEURL}}/posts

Endpoint Management

You can save, list, and remove named endpoints for reuse.

CommandDescriptionExample
saveSave an endpoint with a friendly name and HTTP methodpostcli save getPosts GET {{BASEURL}}/posts
listList all saved endpointspostcli list
removeRemove a saved endpoint by namepostcli remove getPosts

Saved endpoints now store both the method and the URL.

Environment Variables

Manage dynamic environment variables with easy {{VAR}} substitution.

CommandDescriptionExample
env setSet or update an environment variablepostcli env set BASEURL https://jsonplaceholder.typicode.com
env getGet value of a variablepostcli env get BASEURL
env listList all environment variablespostcli env list
env removeRemove an environment variablepostcli env remove BASEURL

You can use environment variables in any request URL:
Example: postcli GET {{BASEURL}}/posts/1

🕒 PostCLI History & Response Commands

This document lists all commands related to history tracking and response management in PostCLI.

History Commands

CommandDescription
postcli historyView all API request history in a color-coded table.
postcli history use <index>Reuse a previous request by its index in the history.
postcli history clearClear all stored request history.
postcli response save <index>Save the response using history index.
postcli replay src/responses/auth/login.jsonReplay the response.

Stats and logs Commands

CommandDescription
postcli statsShow Stats
postcli logsShow Logs
postcli clearClear all stored request history and stats.
OptionDescription
--helpShow help and available commands
--versionDisplay the current CLI version

Conclusion

postcli-dev is more than just a CLI — it’s your personal assistant for managing and publishing markdown content seamlessly. Whether you're a blogger, developer, or tech writer, postcli-dev simplifies your workflow with automation, clean design, and speed.

It’s built with developers in mind — minimal setup, maximum productivity. So, get started today and bring your words to life straight from the terminal! 🚀

Keywords

cli

FAQs

Package last updated on 17 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts