Appearance
CLI management reference
Check ts help <command> for your installed release. Select a project with -project before the command. New management commands return typed metadata; JSON automation follows the shared contract.
| Command or option | Contract |
|---|---|
orgs create <name>, orgs info <selector>, orgs rename <selector> <new-name> | Sign-in only; IDs take precedence over names. orgs includes organizations without projects. |
projects info <selector>, projects rename <selector> <new-name> | Sign-in only; use an ID or -org to disambiguate names. projects create <name> uses your selected/only organization, creating an initial organization when needed. |
orgs delete <selector>, projects delete <selector> | Resolve identity first; type its ID in a terminal or explicitly consent with -yes. Server permissions remain required. |
backup policy <db>, backup policy-set <db> <cron-or-none> <days> | Five-field UTC cron; retention from 1 day up to the plan's backup retention (1 on Free, 3 on Starter, 7 on Pro, 14 on Team, 30 on Enterprise). Quote cron. none removes the custom schedule. Policy metadata is not proof of usable backup history. |
backup window <db> [destination], backup plan <db> <RFC3339> [destination] | Destination is platform (default) or customer. Window reports available history; plan inspects metadata, not object integrity. |
backup restore-at <db> <RFC3339> <new-db> [destination] | Restores independently into a new database; requires permitted history and spare database capacity. |
backup destination get/set/delete | Project-wide customer destination metadata. Set reads one JSON object from stdin and requires -yes; delete requires consent. |
Project deletion refuses a nonempty or unreadable database inventory before deletion. This preflight does not serialize concurrent database creation and does not promise tenant teardown or billing cleanup. Organization deletion requires an empty organization, the owner role and a fresh sign-in confirmation: after the typed ID, or -yes, which skips only that, the CLI prints the hosted confirmation URL and waits until you approve it with your password or an email code (plus two-factor when enrolled). If it is not approved within five minutes, the command fails with step_up_required and the organization is unchanged.
For destination set, redirect a private file into ts -yes backup destination set. Input is at most 16 KiB: endpoint, region, bucket, mode (both or customer), accessKeyId, secretKey. Never put credentials in argv/logs; output contains only public metadata. Database-restricted keys cannot administer project destinations. Removing the destination preserves customer objects and resumes platform shipping.