Skip to content

Repository files navigation

postcli

PostCLI

Publishing skills for AI agents. One CLI, every platform.

npmlicensenode

Install

npm install -g @postcli/substack

This automatically installs @postcli/cli as a peer dependency. The postcli command becomes available globally.

Usage

postcli <platform><command> [options]

Example with Substack

postcli substack auth login
postcli substack posts list --limit 5
postcli substack notes publish "Hello from the terminal"
postcli substack profile me

MCP Server

Start an MCP server for any installed platform:

postcli --mcp substack

Claude Code

{
"mcpServers": {
"substack": {
"command": "postcli",
"args": ["--mcp", "substack"]
}
}
}

Claude Desktop

{
"mcpServers": {
"substack": {
"command": "postcli",
"args": ["--mcp", "substack"]
}
}
}

Plugins

PluginPlatformStatus
@postcli/substackSubstackAvailable
@postcli/mediumMediumPlanned
@postcli/linkedinLinkedInPlanned
@postcli/ghostGhostPlanned
@postcli/wordpressWordPressPlanned
@postcli/hashnodeHashnodePlanned
@postcli/devtoDEV.toPlanned

Creating a Plugin

A PostCLI plugin exports two things:

import{Command}from'commander';// Register CLI subcommands under the platform nameexportfunctionregisterCommands(program: Command): void{constplatform=newCommand('myplatform').description('My platform description');platform.command('hello').action(()=>console.log('Hello from my plugin!'));program.addCommand(platform);}// Optional: MCP server for AI agent integrationexportasyncfunctionstartMcpServer(): Promise<void>{// Start your MCP server with stdio transport}

Set your package's main export to point to this file, and @postcli/cli will discover it automatically.

License

AGPL-3.0

About

PostCLI - Publishing skills for AI agents

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages