CLI
DocStar CLI — Brief Overview
What is a CLI?
CLI stands for Command-Line Interface. It allows developers to interact with an API or service directly from the terminal using commands.
For example:
docstar-cli msg91 slack send-message --message "Hello"
Instead of manually creating an HTTP request, the CLI handles the API request based on the API definition.
What Problem Does It Solve?
Using an API normally requires developers to:
Read the documentation.
Find the correct endpoint.
Understand parameters and request bodies.
Configure authentication and headers.
Create a curl request
Test and debug the request.
This can become repetitive and time-consuming, especially when an API has many endpoints.
DocStar CLI reduces this friction by turning API documentation into executable commands.
How Can It Be Useful?
Quickly discover available API endpoints.
Test APIs directly from the terminal.
Avoid manually writing curl requests.
Use interactive prompts for required parameters.
Work with APIs without opening Postman or a browser.
Using APIs Through AI Models
The DocStar CLI can also expose APIs through MCP (Model Context Protocol).
This allows AI models and AI agents, such as Claude, to discover and execute the documented API operations as tools.
For example, instead of manually running:
docstar-cli msg91 slack send-message --message "Hello"
a user could tell Claude:
Send a Slack message saying "Hello" using MSG91.
Claude can identify the appropriate MCP tool and execute the API call.
The flow becomes:
DocStar API Documentation
↓
DocStar CLI
↓
MCP
↓
Claude / AI Agent
↓
API Call
This makes the API usable not only by developers through a terminal, but also by AI agents through natural language.
Three Ways to Consume an API
Interface | Purpose |
|---|---|
Documentation | Human learns how the API works |
CLI | Developer executes the API from the terminal |
MCP | AI agents execute the API as tools |
In Short
DocStar CLI turns API documentation into an executable interface.
Instead of documentation only explaining how to use an API, DocStar can provide multiple ways to actually use it:
Human → Documentation
Developer → CLI
AI Agent → MCP
This moves DocStar from being only a documentation platform toward becoming an interface layer between APIs, developers, and AI agents.