Skip to content

2dog update

Sets the project's 2dog package versions to the running tool's, and restores. Never downgrades; refuses a dirty git tree. What it rewrites, step by step: Updating a project.

bash
2dog update [path] [options]
ArgumentMeaning
pathDirectory containing project.godot; defaults to the current directory

Options

OptionEffect
--dry-runPrint the plan; change nothing
--no-restoreSkip the final dotnet restore
--allow-dirtyProceed although the git working tree has uncommitted changes

Plus the global and output options. There is no --to: pin the tool instead.

Examples

bash
2dog update                            # here, after committing
2dog update path/to/project --dry-run  # show what would change
dnx 2dog@4.7.2.80 update         # a specific tool version