update and uninstall
These two change the installation rather than a database. Everything else in the CLI leaves the binary alone.
update
Replace the binary with the latest release:
strata updateAsk first, without installing anything:
strata update --checkstrata is up to date (1.2.5)--check is the form to use anywhere that should not change underneath you: a CI job, a container build, a shell prompt. It reports and exits.
Pinning and rolling back
--version installs a specific release instead of the latest, which is how you roll back a bad upgrade and how you hold a machine at a known version:
strata update --version 1.2.2It moves in either direction. There is no separate downgrade command, and going backwards is not treated as unusual.
A database written by a newer engine is the thing to think about before rolling back, rather than the binary swap itself. Compatibility and versioning covers what is safe.
uninstall
Remove the Strata installation from the machine:
strata uninstallIt prompts before doing anything. --yes skips the prompt, which is what an automated teardown wants and what you should think twice about typing by hand.
strata uninstall --yesWhat it does not remove
Your databases. They are ordinary paths you chose, and nothing here goes looking for them, so uninstalling does not put data at risk. Removing a database is deleting the directory yourself.
Use doctor before uninstalling if you want to see what the installation actually consists of, including the home directory and the resolved configuration path.