Back to Home
· product · apcore-cli
apcore-cli
High-performance CLI adapter for apcore modules
apcore-cli is the "inside-out" adapter for the apcore ecosystem. apcore-cli takes your apcore modules and automatically exposes them as CLI subcommands — with zero code changes. It handles zero-config routing, schema-driven arguments, boolean flag pairs, enum choices, STDIN piping, TTY-adaptive output, approval gates, schema validation, security features, shell completions, man pages, and audit logging. It serves as the terminal-native counterpart to apcore-mcp and apcore-a2a.
· interactive
Live Simulator
Try the apcore-cli directly in your browser. No installation required.
--helplistdescribe math.addmath.add --a 12 --b 30text.greet --name World --formal --lang zhmath.add --a oops --b 2admin.reset_databaseadmin.reset_database --no-approve· 01
Features
01Zero-Config Routing: Automatically maps module IDs to CLI commands
02Schema-Driven Args: Uses input_schema to generate CLI arguments, types, and validation
03Boolean Flag Pairs: --verbose / --no-verbose from boolean schema properties
04Enum Choices: Click validation for enum properties
05STDIN Piping: --input - reads JSON from STDIN, CLI flags override
06TTY-Adaptive Output: Rich tables for terminals, JSON for pipes
07Approval Gate: TTY-aware HITL prompts for sensitive operations
08Security: API key auth, append-only audit logging, subprocess sandboxing
09Shell Completions: Generate completion scripts for bash/zsh/fish
10Man Pages: Generate roff-formatted man pages
· 02
Get Started
TypeScript · Implementation
TypeScript/JavaScript implementation of the apcore-cli adapter.
Install
$ npm install -g apcore-cliQuick Start
typescript.ts# Install globally
npm install -g apcore-cli
# Point to your extensions directory
export APCORE_EXTENSIONS_ROOT=./dist/extensions
# Run a module
apcore-cli math.add --a 5 --b 10· related
Related Products
apcore
The schema-driven module development framework that apcore-cli exposes to the terminal.
View Product