Skip to content

CLI Reference

AfterLink includes a command-line interface (CLI) to trace active frame streams, inspect live connection channels, generate mock frame sequences, and manage package upgrades.

Commands

`ping` — Heartbeat latency check

Sends persistent ping packets to calculate heartbeat round-trip latencies for any active AfterLink server socket.

Usage:

Example:

`call` — RPC invocation

Invokes direct RPC endpoints on the target server and reports matching reply values in real time.

Usage:

Example:

`inspect` — Frame decoder

Decodes raw wire hex buffers into readable, formatted JSON blocks matching the 10-byte header layout.

Usage:

Example:

`monitor` — Live channel tracer

Listens to real-time pub/sub streams on a specific channel and prints routing traces.

Usage:

Example:

`upgrade` — Upgrade AfterLink packages

Upgrades all installed AfterLink packages in the current project (dependencies and devDependencies) to their latest versions. Detects the package manager (npm, pnpm, yarn) automatically from the lockfile.

Usage:

Options:

-g, --global Upgrade AfterLink packages globally

Examples: