s2 CLI is the official command-line interface for S2. It provides access to the full S2 API — managing basins, streams, access tokens, and reading/writing records — plus utilities like benchmarking, an interactive TUI mode, and s2-lite for local development.
S2 URIs
Most commands that operate on a stream take an S2 URI of the form:s2://my-basin/my-stream.
The ls command also accepts a URI with just a basin and optional prefix for listing streams: s2://my-basin/prefix.
