Batch Editing & Domain Mappings
Use regex rules to change names, URIs, usernames, or notes across multiple entries. Preview the changes before applying them, and undo them if needed.
Regex Batch Editing
Section titled “Regex Batch Editing”Regex search and replace supports four fields:
nameuriusernamenotesTarget Modes
Section titled “Target Modes”Use --target-mode in the CLI or the target mode selector in the Web UI to choose which values to edit:
| Mode | Behavior |
|---|---|
all |
Evaluate and apply replacement to all matching items |
non-empty |
Only modify items where the target field already has a value |
empty |
Only populate items where the target field is currently empty |
clear |
Clear the target field on matching items |
CLI Examples
Section titled “CLI Examples”# Preview upgrading http:// URIs to https:// without writing changesvaultlint -i vault.json --batch-edit --field uri --pattern "^http://" --replacement "https://" --dry-run
# Normalize item names (lowercase) and URIs (origin-only)vaultlint -i vault.json -o vault-clean.json --normalizeDomain Mappings
Section titled “Domain Mappings”Map subdomains such as accounts.example.com and login.example.com to a parent domain such as example.com: