Run the CLI to name your events
Let DropFix scan your source code and turn technical click names into plain English events.
Step 3
Run this one command
DropFix is capturing clicks and page views, but some may have technical names like dashboard_submit. The CLI reads your source code and gives every action a plain English name.
# Open your terminal inside your project folder and run:
npx @dropfix/cli scan --key YOUR_PUBLIC_KEY
# Replace YOUR_PUBLIC_KEY with your key from Settings -> SecurityWhat the CLI does automatically
- 1Detects your framework: Next.js, React, Vue, Angular, Svelte, or plain HTML.
- 2Scans source files for every button, link, and form.
- 3Skips anything that already has a data-df-track name.
- 4Generates a plain English name for each unnamed element using AI.
- 5Injects names into your source code as data-df-track attributes.
- 6Sends the complete list of event names to DropFix.
Privacy
The CLI never sends API keys, database passwords, or sensitive data. It only sends button text, component names, function names, and CSS class names.Expected output
Detected stack: Next.js
Scanning 23 source files...
Found: 47 interactive elements
Skipped: 3 (already have data-df-track)
Named: 44 events
Injected data-df-track into source files ✓
Manifest sent to DropFix ✓
Review at: https://www.dropfix.in/app-modelReview event names
After the CLI finishes, open DropFix App Model. Most names will be approved automatically. A few icon-only or generic elements may need review.
What you see
Green - 95% confidence
What it means
AI is very confident in the name
What to do
Click Approve all.
What you see
Orange - 60% confidence
What it means
AI made a reasonable guess
What to do
Check the name, edit if needed, approve.
What you see
Red - Needs review
What it means
Could not determine the name confidently
What to do
Type the name yourself or add data-df-track.
| What you see | What it means | What to do |
|---|---|---|
| Green - 95% confidence | AI is very confident in the name | Click Approve all. |
| Orange - 60% confidence | AI made a reasonable guess | Check the name, edit if needed, approve. |
| Red - Needs review | Could not determine the name confidently | Type the name yourself or add data-df-track. |
Manual names and optional flags
If you already added data-df-track manually, the CLI skips those and keeps your names exactly as written.
# Preview what would be changed without changing files:
npx @dropfix/cli scan --key YOUR_PUBLIC_KEY --dry-run
# Scan only a specific folder:
npx @dropfix/cli scan --key YOUR_PUBLIC_KEY --dir ./src/appOptional — automate future scans
As your app grows, you'll add new buttons and forms. They'll show up in DropFix as un-named events until the CLI scans them again. You can re-run npx @dropfix/cli scan manually any time, OR add the snippet below to your package.json so every build re-scans automatically. Adding the postbuild script is optional— we don't modify your package.json for you because every build pipeline is different and we don't want to surprise you.
// Optional — paste this into your package.json yourself.
// We don't auto-modify your package.json because every build pipeline
// is different and we don't want to surprise you.
{
"scripts": {
"build": "next build && npx @dropfix/cli scan --key YOUR_KEY --silent"
}
}