Skip to main content
MoxyCode works alongside your normal Salesforce development workflow. You deploy as usual — MoxyCode steps in automatically when something goes wrong.

Fix your first deployment error

Step 1 — Open a file and deploy

Open any Apex class, trigger, or LWC component in VS Code. Right-click inside the editor or in the Explorer panel and select MoxyCode: Deploy to Org. Or run it from the Command Palette (Cmd+Shift+P / Ctrl+Shift+P): MoxyCode: Deploy to Org
MoxyCode Deploy to Org in the right-click menu

Step 2 — MoxyCode opens automatically on failure

If the deploy fails, MoxyCode shows a notification at the bottom of VS Code: “MoxyCode: n deployment error(s) found.” The MoxyCode — Deploy Errors panel opens automatically with every error listed.
MoxyCode Deploy Errors panel

Step 3 — Understand the error

Click Explain on any error to get a full AI analysis. The explanation includes:
  • What the error means in plain English
  • Exactly why it is happening in your specific code
  • A suggested fix with a code example you can copy
Each Explain click uses 1 of your 5 daily AI requests on the Free plan.
MoxyCode Explain view
On the Free plan, copy the suggested fix from the Explain view and apply it manually. Analyze & Generate Fixes — which generates and applies fixes automatically — is a Pro feature.

Step 4 — Generate and apply fixes (Pro)

On Pro, click Analyze & Generate Fixes to generate a complete fix for every error at once. Each fix shows:
  • Fixed Code — the corrected version ready to apply
  • What Changed — a plain-English summary of what was modified and why
  • Overall Summary — confidence and risk rating
Click Apply Fix. The button changes to Fix Applied and a notification appears: “MoxyCode: Fix applied — changed lines highlighted in green. Save to confirm.” Click Save File in the notification to accept, or Undo Fix to revert.
MoxyCode fix applied notification

Step 5 — Deploy again

Run MoxyCode: Deploy to Org again. Your code should deploy cleanly.
MoxyCode deployment successful notification
Some errors are layered — fixing one can reveal another underneath. Repeat the deploy-fix cycle until the deployment succeeds cleanly.

Sign in prompt

If this is your third request, MoxyCode will show a sign-in prompt before proceeding. Your first two requests are free with no account needed.
  1. Enter your email and click Send Magic Link
  2. Check your inbox for an email from auth@moxycode.com
  3. Click the link — VS Code opens and signs you in automatically
  4. Re-trigger your original request to continue
The magic link expires after 15 minutes. If it expires, return to VS Code and request a new one.

Common issues

The panel opens automatically when MoxyCode detects errors in the Salesforce CLI output. Make sure you are using MoxyCode: Deploy to Org and not the standard Salesforce CLI deploy command — MoxyCode only monitors its own deploys.
Analyze & Generate Fixes is a Pro feature. On the Free plan, click Explain on each individual error to get AI analysis and a suggested fix you can copy manually.
The 5 daily AI request limit on the Free plan is shared across the entire product — Explain clicks, chat messages, and code analysis requests all count. The limit resets 24 hours after your 5th request was made. Upgrade to Pro for unlimited requests.
Some errors are layered — fixing one can reveal another underneath. Run MoxyCode: Deploy to Org again and repeat the fix cycle. MoxyCode will catch the next error in the same way.
MoxyCode only opens the errors panel when the deploy fails. A successful deploy means your code is clean — no action needed.

Fix Deployment Errors

Learn more about how the fix engine works

Code Analysis

Catch issues before you deploy