cloud
Manage the optional Clonit Cloud connection.
clonit cloud [command]Subcommands
Section titled “Subcommands”| Subcommand | Description |
|---|---|
register |
Register this agent with Clonit Cloud |
status |
Show cloud connection status |
sync |
Sync local target definitions to Clonit Cloud |
pull-targets |
Import target definitions from Clonit Cloud |
targets |
List cloud targets |
targets add |
Add a target to the cloud |
snapshots |
List cloud snapshots |
Description
Section titled “Description”Clonit Cloud is an optional SaaS extension that adds team collaboration,
cross-device access, and snapshot sharing. These commands require cloud.url
and cloud.api_key to be configured.
Without cloud configuration, all core Clonit operations work standalone.
To configure the cloud connection, set cloud.url and cloud.api_key with
clonit config edit, then run clonit cloud register to register this agent.
cloud register
Section titled “cloud register”Register this agent with Clonit Cloud.
clonit cloud register [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--force |
bool | false |
Re-register even if already registered |
--name |
string | hostname | Agent name |
Examples
Section titled “Examples”Register this agent with the cloud (defaults the agent name to the hostname):
clonit cloud registerRegister with a custom agent name:
clonit cloud register --name ci-runner-01Re-register an already-registered agent:
clonit cloud register --forcecloud status
Section titled “cloud status”Show cloud connection status.
clonit cloud statusExamples
Section titled “Examples”clonit cloud statuscloud sync
Section titled “cloud sync”Sync local target definitions to Clonit Cloud.
Uploads local target names and database types to Clonit Cloud so they can be accessed from other devices or agents. Sensitive fields (URLs, credentials) are not sent to the cloud.
clonit cloud sync [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--target |
string | all | Sync a specific target |
Examples
Section titled “Examples”Sync all local targets to the cloud:
clonit cloud syncSync a single target:
clonit cloud sync --target mydbcloud pull-targets
Section titled “cloud pull-targets”Import target definitions from Clonit Cloud.
Downloads target names and database types from Clonit Cloud and creates local
target entries. URLs are left empty — fill them in with
clonit targets update <name> --src-url <url>. Only targets that don’t already
exist locally are imported.
clonit cloud pull-targets [flags]| Flag | Type | Default | Description |
|---|---|---|---|
--name |
string | all | Import a specific target |
Examples
Section titled “Examples”Import all cloud targets that don’t exist locally:
clonit cloud pull-targetsImport a single target, then fill in its source URL:
clonit cloud pull-targets --name mydbclonit targets update mydb --src-url "postgres://user:pass@host:5432/mydb"cloud targets
Section titled “cloud targets”List cloud targets.
clonit cloud targetsExamples
Section titled “Examples”clonit cloud targetscloud targets add
Section titled “cloud targets add”Add a target to the cloud.
clonit cloud targets add <name> [flags]Arguments
Section titled “Arguments”| Argument | Description | Required |
|---|---|---|
name |
Name of the cloud target to add | Yes |
| Flag | Type | Default | Description |
|---|---|---|---|
--db-type |
string | postgres |
Database type (postgres, mysql) |
--description |
string | Target description |
Examples
Section titled “Examples”Add a cloud target:
clonit cloud targets add mydbAdd a MySQL cloud target with a description:
clonit cloud targets add analytics --db-type mysql --description "Reporting warehouse"cloud snapshots
Section titled “cloud snapshots”List cloud snapshots.
clonit cloud snapshotsExamples
Section titled “Examples”clonit cloud snapshotsSee Also
Section titled “See Also”- login – Log in to Clonit Cloud via your browser
- logout – Log out of Clonit Cloud and clear the stored session
- push – Push a snapshot to remote storage (use
--cloudfor managed storage) - pull – Pull a snapshot from remote storage (use
--cloudfor managed storage) - targets – List local targets
- Clonit Cloud overview – Learn about the optional cloud extension