info command displays information about your project configuration and environment. Use it to debug issues or verify your setup.
Usage
Options
The working directory. Defaults to the current directory.
Examples
Get project information
Get info for specific directory
Output details
Project info
Shows detected framework and environment:framework.name- Detected framework (next-app, next-pages, vite, etc.)framework.label- Human-readable framework nameframework.links- Documentation linkstailwindVersion- Detected Tailwind CSS version (v3 or v4)aliasPrefix- Import alias prefix (@, ~, etc.)
Components.json
Displays your complete shadcn/ui configuration:$schema- Schema URL for validationstyle- Selected style (new-york, default, etc.)rsc- React Server Components enabledtsx- TypeScript enabledtailwind- Tailwind CSS configurationconfig- Path to tailwind.config filecss- Path to global CSS filebaseColor- Base color palettecssVariables- CSS variables enabledprefix- Tailwind prefix (if any)
aliases- Import path aliasesiconLibrary- Icon library in use (lucide, etc.)rtl- RTL support enabled (if configured)registries- Custom registries (if configured)
Use cases
Debug configuration issues
Check if your configuration is correct:Verify framework detection
Ensure shadcn detected your framework correctly:Check Tailwind version
Verify which Tailwind CSS version is detected:Share configuration
When reporting issues, share your configuration:Verify aliases
Check configured import aliases:Working with output
The output is formatted JavaScript objects. You can:Save to file
Extract specific values
Compare configurations
Framework detection
The command automatically detects:- Next.js (App Router or Pages Router)
- Vite (React)
- Remix
- Astro
- Laravel
- Gatsby
- TanStack Start
Tailwind CSS version detection
Detects Tailwind CSS version from:tailwind.config.jsortailwind.config.tspackage.jsondependencies- Import statements in config file
Troubleshooting
No output
If no information is displayed:- Ensure you’re in the correct directory
- Check if
components.jsonexists - Run
shadcn initif needed
Incorrect framework
If framework is detected incorrectly:- Check your project structure
- Ensure framework dependencies are installed
- Verify package.json is present
Missing configuration
If components.json is missing values:- Run
shadcn initto recreate it - Or manually add missing fields
Notes
- Output format is JavaScript object notation
- Does not modify any files
- Safe to run at any time
- Useful for debugging and support
- Works with partial configurations