A dedicated native Rust CLI tool designed for unified operational management and observability across the separated S2Forge boundary environments (Orchestration, Brokers, Runtimes).
In a strict boundary-native architecture, infrastructure is physically separated to prevent collapse. While this is architecturally sound, it introduces operational friction when managing deployments. s2-cli abstracts this friction by orchestrating the Railway CLI underneath, giving you a unified view without compromising system boundaries.
- Ensure the Railway CLI is installed.
- The CLI expects your tokens to be defined in
.env.localat the root ofSystems/:RAILWAY_ORCHESTRATION_TOKEN=... RAILWAY_BROKERS_TOKEN=... RAILWAY_RUNTIMES_TOKEN=...
You can run the CLI via Cargo.
Queries all three environments concurrently and returns a color-coded table of service deployments and their statuses.
cargo run -- statusSpecify the name of the service (e.g., text-runtime). The CLI will dynamically resolve which project owns it and tail the logs.
cargo run -- logs text-runtimeStarts a local HTTP server to ingest webhook payloads from Railway natively. Useful when piped through a local tunnel (e.g., ngrok) to watch real-time deployments.
cargo run -- watch --port 4000