apcore-cli
Turn apcore modules
into CLI commands.
Run a registered capability from a terminal or script. apcore-cli derives arguments from the module schema and passes the invocation to apcore.
What the CLI adds
Browse capability detailsDiscover available commands
List modules and inspect descriptions, schemas, or annotations through the apcli command group.
Pass typed input
Generate flags from the input schema or supply JSON via stdin for scripts and pipelines.
Use the execution pipeline
Calls enter apcore for validation and use the ACL or approval policy configured for the CLI.
Inspect and run a module
This Python CLI example assumes ./extensions contains the math.add module. If you have a different module, use the ID and arguments from apcli describe.
Install the CLI
Install it in the Python environment with access to your modules.
Shell python -m pip install apcore-cliFind and inspect math.add
Point the CLI at your extensions directory and inspect the module’s input schema.
Shell export APCORE_EXTENSIONS_ROOT=./extensions apcore-cli apcli list apcore-cli apcli describe math.addRun the command
Pass two numbers as schema-derived flags and check the JSON result.
Shell apcore-cli math add --a 5 --b 10Example result {"sum":15}
Documentation
Browse all docsModule discovery
Find modules by ID or tag and inspect available inputs.
Command dispatch
See how flags, stdin, validation, and output fit together.
CLI access rules
Configure caller access and approvals for command execution.
Detailed capabilities and configuration
Convention-Based Routing
Map module IDs to CLI commands