# Deploy Apex Grammar

> Build apex-tmLanguage grammars and deploy them to all Salesforce extensions in the IDE. Use when deploying grammar changes, testing syntax highlighting, or when the user asks to deploy/copy grammars to the IDE.

- Skill: `forcedotcom/deploy-apex-grammar` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add forcedotcom/deploy-apex-grammar`
- Raw SKILL.md: https://api.skillmd.com/api/skills/forcedotcom/deploy-apex-grammar/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: forcedotcom (https://skillmd.com/u/forcedotcom)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/forcedotcom/deploy-apex-grammar

---


# Deploy Apex Grammar to IDE

## Workflow

1. **Build**: Run `yarn install && yarn build` from the apex-tmLanguage project root.
2. **Deploy**: Run `bash .cursor/skills/deploy-apex-grammar/scripts/deploy.sh` from the project root.
3. **Reload**: Tell the user to reload the window (Command Palette → "Developer: Reload Window").

## Deploy targets

The script copies to all Salesforce extensions that use these grammars:

| Extension | Path | Files |
|-----------|------|-------|
| salesforcedx-vscode-apex | grammars/ | apex, soql |
| apex-language-server-extension | grammars/ | apex, soql |
| salesforcedx-vscode-soql | grammars/ | soql |

Searches both `~/.cursor/extensions/` and `~/.vscode/extensions/`.

## One-liner

```bash
yarn install && yarn build && bash .cursor/skills/deploy-apex-grammar/scripts/deploy.sh
```

