---
title: project
---

The `moon project [id]` (or `moon p`) command will display all available information about a project
that has been configured and exists within the graph. If a project does not exist, the program will
return with a 1 exit code.

```shell
$ moon project web
```

### Arguments

- `[id]` - ID or alias of a project, as defined in [`projects`](../config/workspace#projects).

### Options

- `--json` - Print the project and its configuration as JSON.
- `--no-tasks` - Do not list tasks for the project.

## Example output

The following output is an example of what this command prints, using our very own
`@moonrepo/runtime` package.

```
RUNTIME

Project: runtime
Alias: @moonrepo/runtime
Source: packages/runtime
Root: ~/Projects/moon/packages/runtime
Toolchain: node
Language: typescript
Stack: unknown
Type: library

DEPENDS ON

  - types (implicit, production)

INHERITS FROM

  - .moon/tasks/node.yml

TASKS

build:
  › packemon build --addFiles --addExports --declaration
format:
  › prettier --check --config ../../prettier.config.js --ignore-path ../../.prettierignore --no-error-on-unmatched-pattern .
lint:
  › eslint --cache --cache-location ./.eslintcache --color --ext .js,.ts,.tsx --ignore-path ../../.eslintignore --exit-on-fatal-error --no-error-on-unmatched-pattern --report-unused-disable-directives .
lint-fix:
  › eslint --cache --cache-location ./.eslintcache --color --ext .js,.ts,.tsx --ignore-path ../../.eslintignore --exit-on-fatal-error --no-error-on-unmatched-pattern --report-unused-disable-directives . --fix
test:
  › jest --cache --color --preset jest-preset-moon --passWithNoTests
typecheck:
  › tsc --build

FILE GROUPS

configs:
  - packages/runtime/*.{js,json}
sources:
  - packages/runtime/src/**/*
  - packages/runtime/types/**/*
tests:
  - packages/runtime/tests/**/*
```

### Configuration

- [`projects`](../config/workspace#projects) in `.moon/workspace.*`
- [`project`](../config/project#project) in `moon.*`
