Skip to main content
The deno info command provides information about the Deno cache and module dependencies.

Usage

# Show cache directories and Deno version
deno info

# Show dependency tree for a module
deno info [FILE]
deno info https://deno.land/std/http/file_server.ts

Flags

--json
boolean
Output information in JSON format
--reload
boolean
Reload source code cache (recompile TypeScript)
--import-map
string
Load import map file
--node-modules-dir
boolean
Enables or disables the use of a local node_modules folder for npm packages
--vendor
boolean
Toggles local vendor folder usage for remote modules and a node_modules folder for npm packages
--config
string
Specify the configuration file
--no-config
boolean
Disable automatic loading of the configuration file
--lock
string
Check the specified lock file
--no-remote
boolean
Do not resolve remote modules
--no-npm
boolean
Do not resolve npm modules

Examples

Display cache information

Show Deno version and cache directory locations:
deno info
Output:
Deno version: 2.1.0
DENO_DIR location: /Users/username/Library/Caches/deno
Remote modules cache: /Users/username/Library/Caches/deno/deps
npm modules cache: /Users/username/Library/Caches/deno/npm
Emitted modules cache: /Users/username/Library/Caches/deno/gen
Language server registries cache: /Users/username/Library/Caches/deno/registries
Origin storage: /Users/username/Library/Caches/deno/location_data
Web cache storage: /Users/username/Library/Caches/deno/web_cache

Show module dependency tree

Display the full dependency graph for a module:
deno info https://deno.land/std/http/file_server.ts

JSON output

Get information in JSON format for programmatic use:
deno info --json
deno info --json https://deno.land/std/http/file_server.ts

Check module with import map

deno info --import-map=import_map.json main.ts

Build docs developers (and LLMs) love