shc clone
shc clone
Section titled “shc clone”clone a deployment
Synopsis
Section titled “Synopsis”Clone a deployment to a new stack name, environment, or tenant. The command plans the clone first; —dry-run prints the plan and stops, and a run without —yes must be on a terminal. —all-connections clones the deployment’s entire integration graph, with —rename remapping dependency names (old:new pairs). —node, —runtime, and —storage override placement for the cloned stack.
shc clone <source> <target> [flags]Examples
Section titled “Examples” shc clone myblog myblog-staging shc clone myblog blog2 --target-environment staging shc clone mydb mydb-copy -a --rename myblog:myblog-copy shc clone myblog blog2 --dry-runOptions
Section titled “Options” -a, --all-connections cloned entire integration graph --dry-run show what would be cloned without executing -h, --help help for clone -n, --node string target node for the cloned stack -q, --quiet suppress progress output -r, --rename string rename dependencies (comma-separated old:new pairs) --runtime string target runtime (compose|swarm|podman) --storage string storage provider name --target-environment string target environment --target-tenant string target tenant -y, --yes skip confirmation promptOptions inherited from parent commands
Section titled “Options inherited from parent commands” --config stringArray extra YAML config file to layer on top of auto-discovered config; repeatable, later files win -d, --debug enable debug mode (default: $SHC_DEBUG) -e, --environment string environment name (default: $SHC_ENVIRONMENT) --exclude string comma-separated dotted paths to drop --fields string comma-separated columns/keys to show (and their order) --filter string comma-separated dotted paths to keep (drops everything else) -o, --output string output format: tty|text|json|yaml (default: $SHC_OUTPUT) -s, --stack string stack name (default: $SHC_STACK) -t, --tenant string tenant name (default: $SHC_TENANT) -v, --verbose verbose output (default: $SHC_VERBOSE)SEE ALSO
Section titled “SEE ALSO”- shc - Selfhosted Cloud CLI
shc@docs:~$