Skip to main content
The rewind binary is also a command-line client of the API. It talks to a remote server, or to an embedded server it starts on demand in a .rewind/ directory, for local work without any setup. rewind check, rewind test and the replay of an exported journal run in the CLI’s own process, without a server.
The binary is built from the repository: see Self-hosting.

Commands

A toolset file holds what rewind.toolsets.create takes, as JSON. Every command takes --json: the result as JSON on standard output, errors as problem+json on standard error.

Exit codes

Scripts in CI branch on the exit code:

The embedded server

Without --url, the CLI uses the server of the .rewind/ directory (--dir picks another), and starts it when needed: Turso and local files, its API on a unix socket, no key, the end user local unless you name one. It stops after 10 minutes without requests or work in progress; a sleeping run resumes at the next command.