Ask your question and get a summary of the document by referencing this page and the AI provider of your choice
Version History
- "Add absolute output option to list command"v7.5.121/6/2026
- "Add JSON output option to list command"v7.5.111/6/2026
If you have an idea for improving this documentation, please feel free to contribute by submitting a pull request on GitHub.
GitHub link to the documentationCopy doc Markdown to clipboard
List content declaration files
Copy the code to the clipboard
npx intlayer content listAliases:
npx intlayer list
This command displays all content declaration files in your project, showing their dictionary keys and file paths. It's useful for getting an overview of all your content files and verifying that they are properly discovered by Intlayer.
Arguments:
--json: Output the results as JSON instead of formatted text. Useful for scripting and programmatic access.Example:
npx intlayer content list --json
Examples:
List content declaration files:
Copy the code to the clipboard
npx intlayer content listOutput as JSON:
Copy the code to the clipboard
npx intlayer content list --jsonOutput as absolute paths:
Copy the code to the clipboard
npx intlayer content list --absoluteExample output:
Formatted output:
Copy the code to the clipboard
npx intlayer content listContent declaration files: - home-page - src/components/HomePage/homePage.content.ts - server-component - src/components/ServerComponent/serverComponent.content.ts - client-component - src/components/ClientComponent/clientComponent.content.tsTotal content declaration files: 3JSON output:
Copy the code to the clipboard
$ npx intlayer content list --json[{"key":"home-page","path":"src/components/HomePage/homePage.content.ts"},{"key":"server-component","path":"src/components/ServerComponent/serverComponent.content.ts"},{"key":"client-component","path":"src/components/ClientComponent/clientComponent.content.ts"}]This command will output:
- A formatted list of all content declaration files with their keys and relative file paths
- The total count of content declaration files found
The output helps you verify that all your content files are properly configured and discoverable by the Intlayer system.