MediaUse Docs
Commands
Understand the MediaUse command system: core commands, dynamic commands, and how to invoke them.
Command system
MediaUse has two layers of commands.
- Core cmd: stable global commands
- Dynamic cmd: site-specific semantic commands
Core cmd table (full)
Complete current core command list:
| Command | What it does |
|---|---|
| mediause help [site] [capability] [--json] | Show CLI help |
| mediause close [--json] | Close current active context session |
| mediause version [--json] | Show CLI version |
| mediause plugin list [--json] | List installed/available plugins |
| mediause plugin add <site> [--json] | Add site plugin (reserved no-op currently) |
| mediause auth login <platform[/entry]> [--cdp <endpoint>] [--json] | Login for platform or entry |
| mediause auth list [--json] | List auth accounts |
| mediause auth health [--alias <platform:account_id>] [--json] | Check auth/account health |
| mediause auth logout <platform:account_id> [--json] | Logout account |
| mediause auth delete <platform:account_id> [--json] | Delete local auth record |
| mediause use account <platform:account_id> [--cdp <endpoint>] [--policy <value>] [--idle-timeout-seconds <n>] [--show] [--json] | Set active account context |
| mediause manage task [--id <task_id>] [--json] | Inspect task info |
| mediause manage context [--show | --open | --close | --clear] [--json] | Manage active context state |
| mediause manage key [key] [--json] | Set or view key |
| mediause trace last | Get latest trace |
| mediause task status --task-id <id> | Get task status |
| mediause task trace --task-id <id> | Get task trace |
| mediause rpc serve [--protocol jsonrpc-stdio|jsonrpc-tcp] | Run RPC service |
Dynamic cmd examples
After plugin setup, invoke semantic actions by site + capability + action.
mediause <site> -h mediause <site> <capability> -h mediause <site> <capability> <action> --json # examples mediause <site> post feed --text "hello" --json mediause <site> get detail --url <page_url> --json mediause <site> search hot --limit 10 --json
How to invoke safely
Recommended call order:
mediause plugin add <site> --json mediause use account <site>:<account_id> --json mediause auth health --json mediause <site> <capability> <action> --json mediause trace last --json