canasta gitops init

From Canasta Wiki

canasta > gitops > init

canasta gitops init

Initialize git-based configuration management

Synopsis

Bootstrap git-based configuration management. Converts extensions and skins to submodules and pushes to a remote repository.

canasta gitops init [flags]

Examples

canasta gitops init -n prod --repo git@github.com:org/config.git --key /tmp/gc.key

Flags

Flag Shorthand Description Default Required Orchestrator
--force Force push to non-empty remote Both
--git-user-email Git user.email for commits on the target host (set if not already configured) Both
--git-user-name Git user.name for commits on the target host (set if not already configured) Both
--host-name -n Name for this host in hosts.yaml Both
--id -i Canasta instance ID * Both
--key Path to export the git-crypt key Both
--pull-requests Require pull requests instead of pushing to main Both
--repo Git repository URL Both
--role Host role both Both

* Defaults to the Canasta instance matching the current directory, if any.

Global Flags

Flag Shorthand Description Default Required Orchestrator
--help -h Show help message and exit Both
--verbose -v Enable verbose output Both