moon projects command lists all projects configured in the workspace as a table of information, including project ID, source path, stack, layer, toolchains, and description.
Synopsis
Options
| Option | Type | Description |
|---|---|---|
--json | boolean | Print the projects as JSON |
Example output
The following output shows an example table of projects:- Project - The project ID or name
- Source - The relative path from workspace root to the project
- Stack - The technology stack (frontend, backend, unknown)
- Layer - The project layer (application, library, tool, etc.)
- Toolchains - Comma-separated list of enabled toolchains
- Description - Project description from configuration
moon query projects for advanced querying and filtering of projects.
:::
JSON output
Use the--json flag to output the complete project list as JSON:
Usage examples
List all projects
Export projects as JSON
Count total projects
Filter projects by toolchain
Empty workspace
If no projects are configured in the workspace, you’ll see an informational message:.moon/workspace.yml configuration file.
Related commands
moon project- Display detailed information about a specific projectmoon project-graph- Visualize project dependenciesmoon query projects- Advanced project querying and filtering
Configuration
projectsin.moon/workspace.*