Run vaultlint --help to see all available flags and defaults. Commands assume the npm package is installed; when running from a source checkout, use bun start -- in place of vaultlint.
Read a vault straight from a password manager’s CLI instead of a file. You authenticate through the CLI; vaultlint never asks for or stores a master password, and the vault is held in memory only (never written to a temp file). Enpass is supported through the optional third-party enpasscli reader; configure VAULTLINT_ENPASS_VAULT with the vault directory, and set the CLI’s MASTERPW environment variable for non-interactive access. VAULTLINT_ENPASS_KEYFILE is optional. Enpass CLI output does not include folder hierarchy. Dashlane imports passwords, secure notes, secrets, and personal IDs; secrets and personal IDs are kept as JSON note bodies, and payment cards are not exposed through the documented personal vault commands. Keeper Commander imports records from its JSON list/get commands; unsupported record types are kept as JSON secure-note bodies.
Flag
Description
--from-cli <provider>
Read the vault via a provider CLI: bitwarden (bw), lastpass (lpass), dashlane (dcli), keeper (keeper), 1password (op), proton-pass (pass-cli), nordpass (np), or Enpass (enpasscli, community project)
--push-to-cli
Push the resulting changes back through the vendor CLI (Bitwarden only). Prints a plan first and asks for confirmation (-s skips the prompt)
--list-cli-providers
Show which providers support import and push
Terminal window
# Unlock Bitwarden and export the session key it prints
bwlogin
exportBW_SESSION="$(bwunlock--raw)"
# Audit the live vault, read-only
vaultlint--from-clibitwarden--audit
# Read and audit the configured default Proton Pass vault, read-only
vaultlint--from-cliproton-pass--audit
# Read and audit NordPass from its unlocked CLI session, read-only
# Complete `np signin`, `np unlock`, and first-run consent in a terminal first.
vaultlint--from-clinordpass--audit
# Read and audit items accessible to the configured 1Password CLI session
vaultlint--from-cli1password--audit
# Read and audit an Enpass vault with enpasscli (set VAULTLINT_ENPASS_VAULT and MASTERPW)
vaultlint--from-clienpass--audit
# Read and audit Dashlane passwords, secure notes, and secrets
vaultlint--from-clidashlane--audit
# Read and audit records accessible to the configured Keeper Commander session
vaultlint--from-clikeeper--audit
# Preview merging duplicates in the live vault, then apply
Pushing writes to your live vault. Updates use bw edit, new items use bw create, and removed items are moved to Bitwarden’s trash (never deleted permanently). Before writing, vaultlint re-reads the vault and aborts if any item it would change was modified after it was read. Payloads go to the CLI over stdin, so secrets never appear in command arguments.
When --config is not given, vaultlint looks in the current working directory for vaultlint.config.json, then .vaultlintrc.json, and uses the first one it finds. It does not search parent directories. --ruleset and --rule are applied on top of the file. An explicit --config <path> skips discovery and fails if the file does not exist.
The discovered file is parsed every time the linter runs, including implicit runs such as --audit, so an invalid config in the working directory makes those commands fail with a parse or validation error. Fix or remove the file, or run from another directory.
--lint exits with 1 when any error-severity finding remains (after --fix, if given). --max-warnings <count> also exits with 1 when warnings exceed the count, even without --lint (for example with --ruleset or --fix). With --sarif-baseline <path> --fail-on-new, only findings that are new relative to the baseline fail the run. Any runtime error, such as an unreadable file or an invalid flag value, exits with 1; otherwise the exit code is 0.
Run --list-rules for the live list. “Default” is the severity in the recommended preset. Safe autofixes run with --fix; unsafe ones also need --fix-unsafe.
Rule
Description
Default
Autofix
weak-password
Password is shorter than 12 characters or missing a digit/special character.
error
Unsafe
reused-password
Same password is shared across multiple vault items.
error
Unsafe
malformed-uri
Login URI is missing a scheme or cannot be parsed as a valid URL.
error
Safe
insecure-http-uri
Non-local login URI uses plaintext http:// instead of https://.
warning
Safe
duplicate-items
Multiple vault items of the same type share the same normalized name.
warning
Unsafe
duplicate-uris
A single item lists the same URI more than once.
warning
Safe
whitespace-in-fields
Item name, username, or URI has leading or trailing whitespace.
hint
Safe
empty-folder-ref
Item references a folderId that does not exist in vault folders.
warning
Safe
missing-password
Login item has neither a password nor a FIDO2 passkey.
warning
—
missing-item-name
Vault item has an empty or placeholder name.
warning
—
missing-uri
Login item has credentials but no associated URI.
hint
—
missing-username
Login item has a password but no username.
hint
—
missing-totp
Login item with a password has no TOTP secret or FIDO2 passkey.
hint
—
stale-password
Login item password has not been updated in over 365 days.