CLI Overview¶
asactl is the CLI used with ASAHub and OpenASA agreements.
Positioning¶
asactlis the CLI client for ASA agreements.- It supports both built-in module commands and top-level agreement
call. - It is designed for mixed local workspace and remote service usage.
Relationship to the docs¶
| Item | Primary concern |
|---|---|
| OpenASA documentation | standards, runtime, API contracts |
| ASAHub documentation | Hub product usage and resource workflows |
asactl |
local workspace and remote Hub operations |
Core Concepts¶
ASA: Agent Service Agreementasactl: a command-line runtime that lets users or agents inspect agreements, query services, and invoke agreement-defined actions.
Architecture Layers¶
route: CLI entry and argument parsingdriver: call assembly and transport executioninvoke: unified invocation modelpayload (NDJSON): external envelope formattransport adapter: CLI / HTTP / HTTPS / WSmodules: account / service / agreement / flow / plugin / build / store / osscall: top-level agreement invocation command
Entry Points¶
Modules and Aliases¶
account(acc)service(svc)flowagreement(pt)plugin(plg)buildstoreoss
Environment Variables¶
| Variable | Description | Default |
|---|---|---|
ASACTL_SERVER_HOST |
Remote ASAHub service URL | https://api.asahub.ai |
ASACTL_USER_DIR |
Local user data directory | <HOME>/.asactl/user |
ASACTL_WORKSPACE_DIR |
Local workspace root | <HOME>/.asactl |
ASACTL_REMOTE_TIMEOUT_MS |
Remote request timeout in milliseconds | 10000 |
ASACTL_DEV |
Development mode switch | disabled |
ASACTL_INSECURE_TLS |
Skip TLS certificate verification for remote call | disabled |
ASACTL_USER_DIR and ASACTL_WORKSPACE_DIR also accept ~, $HOME, and %USERPROFILE% style prefixes.
Note on ASACTL_SERVER_HOST:
https://api.asahub.aiis the default remote entry for CTL- for local development, override it explicitly, for example
http://127.0.0.1:3000
Command Style¶
- The current primary command names from
ctlare used here. - When an alias exists, the long form is preferred.
- Agreement versions are written with the
vprefix, for examplev1.0.0.
See CLI Installation, CLI Usage, Command Matrix, and Agreement Call.