back
DOCS · v0.0.1
How to publish your CLI to cliview
1Install the SDK
npm install -g cliview
2Prepare your CLI
Any CLI that follows POSIX --help conventions works. We invoke yourcli --help and infer the arg schema from the output. Ideally each arg has a description, type, and required flag.
$ pm-hedge --help Usage: pm-hedge scan [options] Options: --wallet <addr> EVM wallet address (required) --cex <name> binance | okx | coinbase --full Full multi-wedge scan + AI explanation --json Output JSON -h, --help Show help
3Publish
cliview publish ./pm-hedge # or cliview publish npm:pm-hedge # or cliview publish github:user/pm-hedge
→ returns https://pm-hedge.cliview.org
4Manifest (optional · advanced)
If you'd rather not rely on auto-inference, drop a cliview.json at your project root with the full schema. Shape:
{
"schemaVersion": 1,
"slug": "pm-hedge",
"name": "PM-Hedge",
"description": "Crypto event-risk scanner",
"source": {
"kind": "npm",
"pkg": "pm-hedge",
"bin": "pm-hedge"
},
"args": [
{
"name": "wallet",
"flag": "--wallet",
"kind": "string",
"required": true,
"description": "EVM wallet address"
},
{
"name": "full",
"flag": "--full",
"kind": "boolean",
"required": false,
"defaultValue": false
}
],
"output": { "format": "auto", "streaming": false },
"runtime": {
"language": "js",
"timeoutSeconds": 60,
"memoryMb": 512
},
"pricing": {
"mode": "dev_pays",
"amountUsd": 0
},
"visibility": "public"
}Full docs + API reference land in v1.1