deno upgrade command upgrades your Deno installation to a newer version.
Usage
Description
Upgrades the Deno executable to the latest version or a specified version. By default, it downloads and installs the latest stable release. The command supports different release channels (stable, canary, rc, lts) and can upgrade to specific versions.Arguments
Specify a version, git hash (for canary), or channel name. Can be:
- A version number (e.g.,
1.40.0) - A git commit hash (for canary builds)
- A channel name:
stable,canary,rc, orlts
Options
The version to upgrade to (e.g.,
1.40.0).The path to output the updated executable to. Defaults to the current Deno executable path.
Perform all checks without actually upgrading.
Force upgrade even if already on the latest version.
Upgrade to the latest canary build.
Upgrade to the latest release candidate.
Verify the download with this SHA-256 checksum.
Release Channels
Stable
The default release channel with thoroughly tested, production-ready versions.Canary
Nightly builds from the main branch with the latest features.Release Candidate (RC)
Pre-release versions for testing upcoming major releases.LTS (Long Term Support)
Versions with extended support for stability-focused users.Examples
Upgrade to latest stable version
Upgrade to a specific version
Upgrade to the latest canary build
Upgrade to a specific canary build
Dry run to check what would be upgraded
Force upgrade to reinstall the current version
Install to a custom location
Verify download with checksum
Environment Variables
Disable automatic update checks when set to any value.
Override the default installation directory.
Notes
- The upgrade command caches downloaded binaries to avoid re-downloading the same version
- On Windows, running Deno LSP processes will be terminated before upgrading
- If upgrading fails due to permissions, you may need to run with elevated privileges
- Downloaded versions are verified before installation
- For canary builds, old cached versions are automatically pruned (keeps last 10)