CLICommand referencemigration migration
Commands, arguments, and options for openship migration.
See the workflow guide for examples. Global flags such as --json go before the command; see global options.
Discover, import, move and copy Docker workloads between authorized servers, including Cloud
openship migration [options] [command]
Find an active run before starting or reattaching to work
openship migration active [options] <server>
Register discovered services in place on a self-hosted controller
openship migration adopt [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |
Request cancellation and rollback; poll migration get until it finishes
openship migration cancel [options] <id>
| Option | Meaning |
|---|
-y, --yes | Confirm operation |
Delete target volumes copied by a failed migration; source data remains
openship migration cleanup-target [options] <id>
| Option | Meaning |
|---|
-y, --yes | Confirm operation |
Confirm the reviewed target; never invents a cutover token or changes the retirement choice
openship migration cutover [options] <id>
| Option | Meaning |
|---|
--token-file <file> | This run's confirmation token, or - for stdin |
--originals <choice> | Retain source containers or authorize their destruction (choices: "retain", "retire") |
-y, --yes | Confirm cutover |
Reattach to a migration's progress without restarting it
openship migration events [options] <id>
Read durable state, logs, transfer progress, pending prompts and cutover token
openship migration get [options] <id>
List up to 50 runs for a server or project
openship migration list [options]
| Option | Meaning |
|---|
--server <id> | Source or target server |
--project <id> | Project ID |
Inspect transfer size, blocked services, conflicts and downtime before moving
openship migration preview [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
Move or copy an existing project; the run waits for explicit cutover
openship migration project [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |
Recover a scanned orphaned Openship project with its original ID
openship migration reimport [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |
Delete a terminal run's history record; retain the migrated project and data
openship migration remove [options] <id>
| Option | Meaning |
|---|
-y, --yes | Confirm operation |
Read repository Compose services with environment values masked
openship migration repo-compose [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
Respond to the exact pending decision returned by migration get
openship migration respond [options] <id>
| Option | Meaning |
|---|
--prompt <id> | Current pending prompt ID |
--action <id> | An action offered by that prompt |
-y, --yes | Confirm the offered action |
Resume a partial run with reviewed path overrides or skips
openship migration resume [options] <id> [file]
| Argument | Meaning |
|---|
id | Resource ID |
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |
Print only the requested environment keys from one source container (secrets)
openship migration reveal-env [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |
Read Docker services, container IDs, routes and volumes with environment values masked
openship migration scan [options] <server>
| Option | Meaning |
|---|
--flat-docker | Include managed containers in the Docker scan |
--follow | Stream scan progress |
--timeout <ms> | Bound the streaming scan (default: 120000) |
Manage migration-only SSH sources; these cannot run general server commands
openship migration source [options] [command]
Connect a source using credentials from a JSON file or stdin
openship migration source add [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
List registered migration sources
openship migration source list [options]
Delete saved migration access; retain source workloads and data
openship migration source remove [options] <id>
| Option | Meaning |
|---|
-y, --yes | Confirm disconnect |
Verify source access and return its SSH fingerprint without saving it
openship migration source test [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
Start the reviewed Docker migration; keep killOriginals false to review cutover
openship migration start [options] [file]
| Argument | Meaning |
|---|
file | JSON input file, or - for stdin |
| Option | Meaning |
|---|
--schema | Print the accepted JSON schema without making a request |
-y, --yes | Confirm this operation |