Skip to main content

axag apply

Apply confirmed annotations from the last scan to your source files.

Usage

axag apply [options]

Examples

# Apply annotations to source files
axag apply

# Preview changes without applying
axag apply --dry-run

# Skip creating backup files
axag apply --no-backup

Options

FlagDefaultDescription
--dry-runfalsePreview changes without writing files
--backup / --no-backuptrueCreate .bak backup files before modifying
-i, --input <dir>.axagInput directory with scan results

Supported File Types

FormatSupportNotes
.html / .htm✅ FullCheerio-based DOM manipulation
.jsx✅ SimplifiedRegex-based attribute injection
.tsx✅ SimplifiedRegex-based attribute injection
tip

For complex JSX/TSX projects, consider scanning the compiled HTML output and then mapping annotations back to source files.

Backup Files

By default, axag apply creates backup files before modifying:

src/index.html      → src/index.html.bak
src/App.tsx → src/App.tsx.bak

Use --no-backup to skip this step.