ReadySet CLI

ReadySet is made up of the following core components:

ReadySet ServerTakes a snapshot of your database, listens to the database's replication stream for updates, and keeps queries cached in an in-memory dataflow graph.
ReadySet AdapterHandles connections from SQL clients and ORMs, forwards uncached queries to the upstream database, and runs cached queries against the ReadySet Server.

This page introduces the readyset commands for running these components, as well as information about environment variables that can be used in place of certain command options.



Start the ReadySet Server and Adapter as a single process (with the --standalone option), or start the ReadySet Adapter as a distinct process from the ReadySet Server.


Start the ReadySet Server, when running the ReadySet Adapter as a distinct process.

Environment variables

For many common readyset and readyset-server options, you can set environment variables once instead of manually passing the flags each time you execute commands.

  • To find out which flags support environment variables, see the documentation for each command.
  • To output the current configuration of ReadySet and other environment variables, run env.
  • When a command uses environment variables, the variable names are printed to the command's logs.

ReadySet prioritizes command flags, environment variables, and defaults as follows:

  1. If a flag is set for a command, ReadySet uses it.
  2. If a flag is not set for a command, ReadySet uses the corresponding environment variable.
  3. If neither the flag nor environment variable is set, ReadySet uses the default for the flag.
  4. If there's no flag default, ReadySet returns an error.