Command line

A guide to vault-zip-cli, made for automation (RPA and the like). It uses the same ledger as the app, and both can run at the same time.

Before you start

Main commands

vault-zip-cli compress -i folder --json                  # create (a password is generated and kept in the ledger)
vault-zip-cli compress -i folder --each                  # one ZIP per item inside
vault-zip-cli extract  -i archive.zip -o dest --json     # extract, using the ledger's password
vault-zip-cli pdf encrypt -i report.pdf --json           # password-protect a PDF
vault-zip-cli pdf decrypt -i report_encrypted.pdf        # make a copy without the password
vault-zip-cli pdf check   -i report.pdf --json           # look at a PDF (changes nothing)
vault-zip-cli identify file... --json                    # what a file is, from its content
vault-zip-cli search term --json                         # search the ledger
vault-zip-cli reveal <ID>                                # show a password from the ledger
vault-zip-cli status --json                              # state of the ledger and backups

There are also commands for backups (backup), the recovery key (recovery-key), settings (settings), licences (license) and administrator policies (policy). vault-zip-cli --help lists them all.

Choosing the password yourself

echo your-password| vault-zip-cli compress -i memo.txt --pass-stdin --json

A password is 1–128 printable ASCII characters. --print-password shows a generated password on screen; keep it out of automated flows, because it would end up in run logs.

Moving the originals to the Recycle Bin (--purge)

After compressing and verifying, the originals are moved to the Recycle Bin (desktop only). It acts only when the originals still match the ZIP and the Recycle Bin can take them, and it never deletes outright. Otherwise the originals stay and the exit code is 4.

Exit codes

Exit codeMeaning
0Success
2Usage error
3Partly failed (e.g. --each); the rest succeeded
4--purge: the ZIP was made but the originals were kept
10Input not found
11Output already exists (nothing overwritten)
12Not enough free space
13Other I/O error
20No usable password
21Wrong password
22Data failed authentication: damaged or altered
23Rejected by the safety checks
24Not an archive, or an unsupported feature
25The archive is damaged
26A recognised format that Vault-ZIP does not read
29More than 100,000 entries (needs --allow-many-entries)
30Ledger database error
31The ledger exists but its key is missing
32OS keystore error
33Portable copy: wrong passphrase
40Backup error
41Not a valid licence file
42Not allowed by an administrator policy
50Cancelled
60A PDF was refused (already encrypted, signed, and so on)
70Unexpected internal error

The JSON result carries ok, the error code, warnings and more. Portable copies take the passphrase through --unlock-stdin; for automation, an installed copy is the better choice.