2dog update
Sets the project's 2dog package versions to the versions of the running tool. If this changes the project files, it then restores the packages. It never downgrades a package. If the project is in a Git repository and tracked files have uncommitted changes, the command stops. To continue anyway, pass --allow-dirty.
bash
2dog update [path] [options]| Argument | Meaning |
|---|---|
path | Directory containing project.godot; defaults to the current directory |
Options
| Option | Effect |
|---|---|
--dry-run | Print the plan; change nothing |
--no-restore | Skip the final dotnet restore |
--allow-dirty | Continue even if tracked files have uncommitted changes |
--install-wasm-tools | Install missing wasm-tools for browser hosts |
--install-android-workload | Install the missing android workload for Android hosts |
--update-workloads | Install missing workloads the hosts need, then run dotnet workload update for the project's SDK |
Plus the global and output options. There is no --to: pin the tool instead.
Package updates need no workloads or Android SDK. For browser or Android hosts, the tool can offer to update workloads on a terminal. It uses dotnet workload update, which updates all installed workloads for the SDK. --no-restore skips the offer, and --dry-run never checks or changes workloads.
Examples
bash
2dog update # here, after committing
2dog update path/to/project --dry-run # show what would change
dnx 2dog@4.7.2.217 update # a specific tool version