squarecloud app snapshot and squarecloud db snapshot work the same way: create makes one, list shows the ones stored, restore puts one back.
For create, the app ID is optional: see how the CLI finds your app. The database ID is optional too: without it, the CLI opens a picker of your databases.
squarecloud app snapshot create
Usage
Output
snapshot list in a few minutes. A download is saved readable only by you (0600 permissions), and a failed --download removes the partial file.
squarecloud app snapshot list
Usage
_javascript_manual.
Pass a snapshot ID from that list to see its versions and their version IDs, which restore needs:
--json, the output keeps the same filter. Listing snapshots needs an active plan.
squarecloud app snapshot restore
Usage
Replaces the application’s current files with a snapshot version. Take
<snapshotID> and <versionID> from app snapshot list. It asks for y/N confirmation first.
Output
Ctrl+C stops watching, not the restore. With --no-wait, the command returns at that point instead, which can still take up to about 90 seconds.
If a restore or a snapshot is already running on the application or database, the CLI asks you to wait for it to finish and try again. When snapshots are temporarily unavailable, try again in about 30 seconds.
squarecloud db snapshot create
Usage
Works like
app snapshot create, for a database.
squarecloud db snapshot list
Usage
restore takes.
squarecloud db snapshot restore
Usage
Replaces the database’s current data with a snapshot version, after a
y/N confirmation. A long restore is followed like app snapshot restore does.

