Skip to content
immarktube edited this page Jun 21, 2025 · 4 revisions

Welcome to the dockyard-cli wiki!

dockyard sync

This command will run git fetch and git pull across all repositories which defined in .dockyard.yaml.

dockyard status

This command will run git status across all repositories which defined in .dockyard.yaml.

dockyard patch

This command accept multiple arguments, and we have two ways to update the file.
1.
--file: this is meaning which one file in all the repositories you need update.
--old: the old content need to replace of.
--new: the new content need to replace.
--message: the git commit message.
please check below example:
dockyard patch --file sample.yaml --old 'thisIsOldChar' --new 'thisIsNewChar' --message 'update in sample.yaml'.
2.
we can use regex to do the update, when you input --regex we will use regex mode to update the content.
and we will get the regex command from --old.
please check this as example.
dockyard patch --file test.txt --old '\bOld\w*\b' --new 'New' --regex

you also can run dryrun before you run the actual run, the dryrun command will collect how many repositories will update. you can simply add --dryrun after the command.

Clone this wiki locally