> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agentfront.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Executors Overview

> All 7 FrontMCP Nx executors for building, testing, and deploying

Executors wrap FrontMCP CLI commands as Nx targets, enabling caching, dependency ordering, and `nx affected` support.

Every executor runs from the project root and uses the `frontmcp` CLI installed in your workspace (`node_modules/.bin/frontmcp`); none of them download a CLI with `npx`. The **Cacheable** executors are cached once the target sets `"cache": true` — generated projects do, and `nx add @frontmcp/nx` adds matching `targetDefaults` to `nx.json` for existing workspaces.

## Summary

| Executor | CLI Command | Cacheable | Long-Running |
| - | - | - | - |
| [`build`](/frontmcp/nx-plugin/executors/build) | `frontmcp build` | Yes | No |
| [`build-exec`](/frontmcp/nx-plugin/executors/build-exec) | `frontmcp build --target node` | Yes | No |
| [`dev`](/frontmcp/nx-plugin/executors/dev) | `frontmcp dev` | No | Yes |
| [`serve`](/frontmcp/nx-plugin/executors/serve) | `frontmcp start` | No | Yes |
| [`test`](/frontmcp/nx-plugin/executors/test) | `frontmcp test` | Yes | No |
| [`inspector`](/frontmcp/nx-plugin/executors/inspector) | `frontmcp inspector` | No | Yes |
| [`deploy`](/frontmcp/nx-plugin/executors/deploy) | Platform-specific | No | No |

## Usage in project.json

Executors are configured in each project's `project.json`:

```json theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
{
  "name": "my-app",
  "targets": {
    "build": {
      "executor": "@frontmcp/nx:build",
      "outputs": ["{projectRoot}/dist"],
      "options": {
        "entry": "{projectRoot}/src/main.ts",
        "outputPath": "{projectRoot}/dist"
      }
    },
    "dev": {
      "executor": "@frontmcp/nx:dev",
      "options": {
        "entry": "{projectRoot}/src/main.ts"
      }
    },
    "test": {
      "executor": "@frontmcp/nx:test",
      "options": {
        "runInBand": true
      }
    }
  }
}
```

## Running Executors

```bash theme={"theme":{"light":"snazzy-light","dark":"dark-plus"}}
# Run a specific target
nx build my-app
nx dev my-app
nx test my-app

# Run across all projects
nx run-many -t build
nx run-many -t test

# Run only affected projects
nx affected -t test
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.