Common Commands
These commands cover the normal operator workflow from discovery through dry-run planning and controlled execution.
Choose Your Command Prefix
The examples below use the installed command:
raylimit ...If you are running from source instead of an installed release package, replace that prefix with one of these:
go run ./cmd/raylimit ...
./bin/raylimit ...The command behavior is the same. The difference is only how you launch the binary.
Discover Runtimes
Start by listing the runtimes RayLimit can currently see:
sudo raylimit discoverUse JSON when you want a machine-readable list:
sudo raylimit discover --format jsonInspect One Runtime
Inspect one selected runtime before you plan any speed limiter:
sudo raylimit inspect --pid 1234
sudo raylimit inspect --pid 1234 --format jsonThis gives you the current runtime identity, host-visible metadata, and API-capability hints when they are available.
If you are running from source, these are the direct equivalents:
go run ./cmd/raylimit --help
make build
./bin/raylimit --helpPreview A Speed Limiter
Dry-run is the default. Start there:
sudo raylimit limit --pid 1234 --ip 203.0.113.10 --device eth0 --direction upload --rate 2048For the preferred identity-oriented shared-pool path:
sudo raylimit limit --pid 1234 --uuid user-a --device eth0 --direction upload --rate 2048Apply A Concrete Speed Limiter
Add --execute only when the dry-run output shows a concrete execution path:
sudo raylimit limit --pid 1234 --outbound proxy-out --device eth0 --direction upload --rate 2048 --executeRemove Managed State Conservatively
Remove uses the same selection model and stays conservative:
sudo raylimit limit --pid 1234 --ip 203.0.113.10 --device eth0 --direction upload --remove --executeWork In JSON When You Need Automation
The same commands can be rendered in JSON:
sudo raylimit limit --pid 1234 --uuid user-a --device eth0 --direction upload --rate 2048 --format jsonCheck Version And Build Metadata
raylimit versionUse the sidebar to continue into practical usage, speed limiter families, and troubleshooting.