On this page
deno update
deno update updates dependencies in your
deno.json or package.json. See
Modules for more about managing dependencies.
Updating dependencies Jump to heading
By default, the update subcommand will only update dependencies to
semver-compatible versions (i.e. it won't update to a breaking version).
deno update
Updated 1 dependency:
- jsr:@std/fmt 1.0.0 -> 1.0.3
To update to the latest versions (regardless of whether it's semver compatible),
pass the --latest flag.
deno update --latest
Updated 3 dependencies:
- jsr:@std/async 1.0.1 -> 1.0.8
- jsr:@std/fmt 1.0.0 -> 1.0.3
- npm:chalk 4.1.2 -> 5.3.0
Selecting packages Jump to heading
The update subcommand also supports selecting which packages to operate on.
deno update --latest chalk
Updated 1 dependency:
- npm:chalk 4.1.2 -> 5.3.0
Multiple selectors can be passed, and wildcards (*) or exclusions (!) are
also supported.
For instance, to update all packages with the @std scope, except for
@std/fmt:
deno update --latest "@std/*" "!@std/fmt"
Updated 1 dependency:
- jsr:@std/async 1.0.1 -> 1.0.8
Note that if you use wildcards, you will probably need to surround the argument in quotes to prevent the shell from trying to expand them.
Updating to specific versions Jump to heading
You can also select a specific version to update to by appending it after @.
deno update chalk@5.2 @std/async@1.0.6
Updated 2 dependencies:
- jsr:@std/async 1.0.1 -> 1.0.6
- npm:chalk 4.1.2 -> 5.2.0
Workspaces Jump to heading
In a workspace setting, by default update will only operate on the current
workspace member.
For instance, given a workspace:
{
"workspace": ["./member-a", "./member-b"]
}
Running
deno update
from the ./member-a directory will only update dependencies listed in
./member-a/deno.json or ./member-a/package.json.
To include all workspace members, pass the --recursive flag (the -r
shorthand is also accepted).
deno update --recursive
deno update --latest -r
updateUpdate outdated dependencies
Options Jump to heading
--certLoad certificate authority from PEM encoded file.
--compatibleOnly consider versions that satisfy semver requirements.
Configure different aspects of deno including TypeScript, linting, and code formatting.
Typically the configuration file will be called deno.json or deno.jsonc and
automatically detected; in that case this flag is not necessary.
--env-fileLoad environment variables from local file Only the first environment variable with a given key is used. Existing process environment variables are not overwritten, so if variables with the same names already exist in the environment, their values will be preserved. Where multiple declarations for the same environment variable exist in your .env file, the first one encountered is applied. This is determined by the order of the files you pass as arguments.
--frozen-lockfileError out if lockfile is out of date.
Load import map file from local file or remote URL.
--interactive, -iInteractively select which dependencies to update.
--latestConsider the latest version, regardless of semver constraints.
--lockCheck the specified lock file. (If value is not provided, defaults to "./deno.lock").
--lockfile-onlyInstall only updating the lockfile.
--min-dep-age(Unstable) The age in minutes, ISO-8601 duration or RFC3339 absolute timestamp (e.g. '120' for two hours, 'P2D' for two days, '2025-09-16' for cutoff date, '2025-09-16T12:00:00+00:00' for cutoff time, '0' to disable).
--no-checkSkip type-checking. If the value of "remote" is supplied, diagnostic errors from remote modules will be ignored.
--no-configDisable automatic loading of the configuration file.
--no-lockDisable auto discovery of the lock file.
--no-npmDo not resolve npm modules.
--no-remoteDo not resolve remote modules.
--node-modules-dirSelects the node_modules directory mode for npm packages (not a path). One of: auto (create a local node_modules directory and install npm packages into it), manual (use the existing local node_modules directory, do not modify it), none (do not use a local node_modules directory; resolve npm packages from the global cache). Defaults to auto when the flag is passed without a value.
--node-modules-linkerSets the linker mode for npm packages (isolated or hoisted).
--recursive, -rInclude all workspace members.
--reload, -rReload source code cache (recompile TypeScript). With no value, reloads everything. Pass a comma-separated list of specifiers to reload only those modules; npm: reloads all npm modules; npm:chalk reloads a single npm module; jsr:@std/http/file-server,jsr:@std/assert/assert-equals reloads specific modules.
--unsafely-ignore-certificate-errorsDANGER: Disables verification of TLS certificates.
--vendorToggles local vendor folder usage for remote modules and a node_modules folder for npm packages.
Last updated on