PrjPcb, SchDoc, SchLib, or PcbLib file (optional if one is auto-detected in CWD)
Options
Flag
Default
Description
--config<CONFIG>
—
Path to clean JSON/JSONC config. For SchDoc/SchLib/PrjPcb, omitted means altium-clean.json next to input. For PcbLib, omitted means workspace config altium-pcblib-clean.json when available, otherwise the same filename next to input. If the resolved config is missing, creates a template and exits.
--init-config
False
Write the appropriate commented JSONC config template and exit without loading or cleaning the input file
--config-type<CONFIG_TYPE>
—
Config template type for --init-config when no input file is supplied; schematic covers PrjPcb, SchDoc, and SchLib inputs (choices: schematic, pcblib)
--force-config
False
Allow --init-config to overwrite an existing config file
-o, --output<OUTPUT>
—
Output file path for SchDoc/SchLib/PcbLib, or output directory for PrjPcb (default: in-place overwrite)
--backup
False
Create a backup copy of the input file before writing output
--backup-path<BACKUP_PATH>
—
Explicit backup file path for SchDoc/SchLib/PcbLib, or backup directory for PrjPcb (default: <input>.bak when --backup is set)
Examples
powershell
# Generate starter schematic or PcbLib cleanup config templates
acr clean --init-config--config-type schematic
acr clean --init-config--config-type pcblib
# Run config-driven cleanup on a library or folder
acr clean parts.PcbLib --config altium-pcblib-clean.json