Skip to content
Dotweave Dotweave v0.39.7

dotweave init

Initialize a new sync directory or connect to an existing one.

Initialize the git-backed sync directory.

Create or connect the sync directory under your XDG config directory, then store the sync settings used by later pull and push operations. If you omit the repository argument, dotweave initializes a local git repository in the sync directory.

dotweave init [repository]
ArgumentDescription
[repository]Remote URL or local git repository path to clone. Optional — when omitted, a new local repository is created.
FlagDescription
--key <age-private-key>Persist an age private key into the identity file.
--promptKeyPrompt to enter an age private key instead of generating one automatically.
--verboseShow detailed output.

Initialize a fresh local sync directory:

dotweave init

Clone a remote repository as the sync directory:

dotweave init https://github.com/user/dotfiles.git --key "AGE-SECRET-KEY-1..."

Initialize with an existing age secret key:

dotweave init --key "AGE-SECRET-KEY-1..."