🔥 All-Access Pass — $199 USD (Regular $499) · Unlock all 2,836 Astro themes ➔
komal.nakrani
Get All-Access Pass ($199)
ThemesCategoriesDocsBlogTips & TricksPricingGet All-Access Pass ($199)
Astro Fundamentals••By Komal Nakrani

astro info: Get Your Environment Details for Bug Reports

astro info prints your Astro, Vite and Node.js versions, OS, package manager, output mode, adapter and integrations, then copies them. Use it in every bug report.

#Astro#astro info#CLI#Debugging

astro info is the Astro CLI command that prints the details maintainers need in a bug report: your Astro, Vite and Node.js versions, operating system, package manager, output mode, adapter and integrations with their versions. Run npx astro info from your project folder, say yes to the clipboard prompt, and paste the result into your GitHub issue or support question.

Key Takeaways

  • npx astro info reports Astro, Vite, Node, System, Package Manager, Output, Adapter and Integrations.
  • It asks “Copy to clipboard?” after printing; --copy skips the prompt.
  • The Astro issue template asks for this output, so include it every time.
  • The dev toolbar has a “Copy debug info” button that does the same from the browser.

Run it

# terminal
npx astro info

Output from a real static site with three integrations:

Astro                    v7.2.9
Vite                     v8.2.1
Node                     v22.23.1
System                   macOS (arm64)
Package Manager          npm
Output                   static
Adapter                  none
Integrations             @astrojs/mdx (v7.0.8)
                         @astrojs/sitemap (v3.7.3)
                         @astrojs/partytown (v2.1.9)

Your numbers will differ. Each line comes from your actual install: the Astro version from the running CLI, Node.js from the current process, and package versions from your package manager’s dependency list. The adapter and integrations are read from your resolved astro.config.mjs.

What each line tells a maintainer

Line Why it matters
Astro Whether the bug is already fixed in a newer patch
Vite Some issues come from a Vite upgrade, not Astro
Node Astro 7 needs Node.js 22.23.4 or newer; older versions cause odd failures
System Path and file-watching bugs are often OS-specific
Package Manager pnpm and Yarn resolve dependencies differently from npm
Output Static and server builds take different code paths
Adapter Most deployment bugs are adapter-specific
Integrations Version mismatches between Astro and an integration are a common cause

Copying without the prompt

After printing, astro info asks whether to copy the plain-text version to your clipboard. In scripts or when you just want it copied, pass --copy:

# terminal
npx astro info --copy

If the clipboard isn’t available, for example over SSH, Astro says so and you can copy the printed text by hand.

From the browser: Copy debug info

While astro dev is running, open the dev toolbar at the bottom of the page and choose the Astro menu. Its “Copy debug info” button copies the same report, which is handy when the bug only shows up in the browser.

Write a better bug report

The info block is half the report. The other half:

  1. The exact error. Paste the full terminal output, not a screenshot. If the error has a title, search it first; our fix tips, such as no adapter installed, cover the common ones.
  2. The smallest reproduction. A fresh npm create astro@latest project with only the code that triggers the bug, pushed to GitHub or StackBlitz.
  3. What you expected and what happened.
  4. Whether it’s a regression. If it worked before an upgrade, say which version it last worked in. The check Astro version tip shows how to find old versions in your lockfile.

If you’re working from a Komal theme, compare your output with the setup in the theme installation docs for the expected Node.js and package manager, or check a theme’s live preview to see whether the problem is in your local copy. For the rest of the CLI, see every Astro CLI command, and file Astro bugs through the Astro GitHub issues.

FAQ

What does astro info show?

The Astro, Vite and Node.js versions, your operating system, package manager, output mode, adapter and every integration with its installed version.

How do I copy astro info output?

Answer yes to the “Copy to clipboard?” prompt, or run npx astro info --copy to copy without being asked.

Does astro info send data anywhere?

No. It reads your local install and config, prints the report and optionally copies it to your clipboard. Nothing is uploaded.

Can I run astro info outside a project folder?

It works best from the project root, because it reads your astro.config.mjs and installed packages. Elsewhere it can’t report your adapter or integrations accurately.