replace
Mode¶
The replace
mode is a destructive import mode β it fully removes and replaces existing data for matching IPs.
If an IP already exists in the project, it will be wiped clean (including all ports and metadata) and replaced with the data from the new report.
Use this mode when you want to overwrite outdated or incorrect scan results with fresh, authoritative data.
β
When to Use replace
¶
Use this mode when:
- You're resyncing results from a more complete or trusted scan
- You need to clean up bad or partial scan data
- Youβre running a re-scan and want to discard old port states
- Youβre enforcing source-of-truth data from a central scan server
π§ Behavior Summary¶
- If an IP does not exist in the project β it will be added normally
- If an IP already exists β its entire record will be deleted and replaced
- Port and metadata fields are wiped and re-imported in full
β οΈ Warning¶
replace
is not reversible. Once imported, previous data is lost unless you have a backup.
Use with care, especially in collaborative environments.
π‘ Example¶
python3 falcli.py project ips import --file report_replace1.xml --mode replace
Output:
Imported IPs report into project 'example-project-id'. Result: 1 IP.