Repository navigation
Command Line Guide
How to use x9z, the XEL9-Z command-line tool. Run x9z <command> --help for every option of a command.
The installers include x9z.
| Install | How to use it |
|---|---|
| Windows installer | Added to PATH during install. Use x9z in a newly opened terminal |
macOS .app
|
Settings → Terminal → Use x9z in the terminal (creates a link at ~/.local/bin/x9z) |
| Linux deb / rpm |
/usr/bin/x9z, ready to use |
| Linux AppImage | The same button in Settings, or call it directly: XEL9-Z.AppImage --x9z list a.zip
|
You can also download the command-line tool on its own; see Installation and Updates.
| Command | What it does |
|---|---|
pack |
Compress and encrypt files and folders into a vault (.x9z) |
sfx |
Turn an existing vault into a self-extracting Windows .exe
|
unpack |
Extract a vault, or safely extract an ordinary archive (zip/7z/rar/alz/iso/cab/deb/rpm/tar…) |
list |
Show what is inside a vault or archive |
add |
Add files to a vault (nothing is recompressed, key slots are kept) |
sync |
Make a vault match a folder on disk (changes only) |
remove |
Delete items from a vault |
compact |
Reclaim space used by deleted or replaced data |
compress |
Create an ordinary archive for other programs (zip, 7z, tar, tar.gz/bz2/xz/zst) |
encrypt / decrypt
|
Encrypt / decrypt a single file |
verify |
Read to the end and verify (byte-level authentication for vaults; CRC, AES tags and digests for ordinary archives) |
hash |
BLAKE3 (default) or SHA-256 hash |
info |
Show the vault header (no password needed) |
repair |
Repair a damaged vault from its recovery record (no password needed) |
recovery |
Add, remove or rebuild a vault's recovery record (no password needed) |
wipe |
Securely delete files and folders (best effort) |
keygen |
Create an identity (name.x9id secret key + name.x9pub public key) |
passwd |
Change the password (data is not re-encrypted) |
rekey |
Add or remove passwords, key files and recipients |
trust |
Manage trusted signers |
config |
View and change settings (cpu, background, memory, sync, breach-list, recovery) |
version |
Print the version |
Options available on every command:
-
--cpu <all|N%|N>: CPU for this job (all cores, N% of cores, or a thread count) -
--background: run at low priority -
--allow-weak-password: accept a password the strength check rejects (not recommended)
x9z pack ./docs -o docs.x9z # asks for a password (not shown as you type)
x9z info docs.x9z # check the header without a password
x9z list docs.x9z
x9z unpack docs.x9z -d ./restored
x9z unpack docs.x9z -d ./one --only docs/report.pdf # just one file (only the needed blocks are decrypted)
x9z encrypt secret.pdf # one file → secret.pdf.x9z
x9z pack ./photos -o p.x9z -k ~/usb/recovery.key # password + key file
x9z pack ./photos -o p.x9z -l 0 # level 0 = auto
x9z pack ./photos -o photos.x9z --split 4g # photos.x9z.001, .002 … (for FAT32 USB drives)
x9z pack ./docs -o docs.x9z --password-stdin < pw.txt # scripts: read secrets from stdin, one per lineReed-Solomon parity added to the end of a vault lets it be repaired when part of it is damaged, for example by bad disk sectors. Vaults with a recovery record can't be opened by very old XEL9-Z versions (removing the record makes them open again).
x9z pack ./photos -o p.x9z --recovery 5% # repairs contiguous damage of up to about 5%
x9z repair p.x9z # → p.repaired.x9z (--in-place replaces the original)
x9z recovery add docs.x9z --percent 3% # add one later
x9z recovery remove docs.x9z # remove it (the vault becomes byte-identical to before)
x9z config set recovery 5% # default for new vaultsx9z info and x9z verify show the recovery record status, and if opening a damaged vault fails you are pointed to x9z repair.
Creates an .exe that can be extracted with a double-click on a Windows PC without XEL9-Z (Windows x64, password vaults only).
x9z pack ./photos -o photos.x9z --sfx # → photos.exe
x9z sfx docs.x9z # existing vault → docs.exeUnattended use on the receiving side: photos.exe -o D:\out -p -y (-p reads the password from standard input; --list and --verify work too). x9z and the app open and extract this .exe like a vault.
Existing data is not recompressed, and duplicates are stored once. Password, key file and recipient slots all stay as they are.
x9z add docs.x9z ./new-files # add (use --replace if the item exists)
x9z remove docs.x9z docs/old.pdf # delete
x9z compact docs.x9z # reclaim space from deleted or replaced data
x9z sync docs.x9z ./docs # like a backup: add new files, update changed ones, remove deleted ones
x9z sync docs.x9z ./docs --dry-run # only show what would change (+ add, ~ update, - delete); the vault is untouched
x9z sync docs.x9z ./docs --keep-removed # keep files in the vault that were deleted from the folderOnly the header changes; the data is not re-encrypted.
x9z passwd docs.x9z
x9z rekey docs.x9z --to carol.x9pub # add a recipient
x9z rekey docs.x9z --add-keyfile usb/recovery.key
x9z rekey docs.x9z --remove 1 # see slot numbers with x9z infoPassword checks:
- For every new password, the time to crack is estimated from the vault's actual Argon2 cost.
- Leaked passwords and passwords that would fall within a day are rejected.
- Weak passwords only get a warning.
To use a leaked password list (Have I Been Pwned, offline file):
x9z config set breach-list ~/pwned-passwords-sha1-ordered-by-hash.txtx9z keygen -o alice # alice.x9id (secret) + alice.x9pub (to share)
x9z pack ./report -o r.x9z --sign alice.x9id
x9z verify r.x9z --signature-only --signer alice.x9pub
x9z unpack r.x9z -d ./out --signer alice.x9pub # refuses anything not signed by alice
x9z trust add alice.x9pub --name "Alice" # add to the trusted signers
x9z unpack r.x9z -d ./out --require-trusted # refuses signers not on the list
x9z trust revoke x9:3ce4-e1ca-be89-c72c --name "lost laptop" # revoked keys are always refused
# for one person, without sharing a password
x9z pack ./contract -o c.x9z --to bob.x9pub --no-password --sign alice.x9id
x9z unpack c.x9z -d ./out -i bob.x9id --signer alice.x9pubx9z compress ./site -o site.zip
x9z compress ./logs -o logs.tar.zst -l 9
x9z compress ./data -o data.7z --password # 7z AES-256 (weaker than a vault)
x9z compress ./iso -o iso.7z --split 700m # iso.7z.001 … (also opens in 7-Zip)
x9z compress ./src -o src.zip --zip-method zstd # smaller and faster (needs 7-Zip 24+, bsdtar or Python 3.14+)
x9z compress ./big -o big.zip --split 700m --split-style zip # big.z01 … big.zip (WinZip / Info-ZIP style)
x9z compress ./disc -o disc.iso --label MYDISC # ISO 9660 + Joliet + Rock Ridge + UDF
x9z compress ./win -o win.iso --boot auto # bootable ISO: uses the boot files found in the folder (or --boot PATH, --boot-efi PATH; --udf on|off overrides the automatic choice)
x9z compress ./logs -o logs.tar.lz4 # tar.lz4
x9z compress a.txt --format gz # one file without tar: a.txt.gz (gz, bz2, xz, zst, lz4)Ordinary archives are extracted with the same safety rules as vaults.
x9z list download.zip
x9z unpack download.tar.gz -d ./out
x9z unpack shared.rar -d ./out # asks for a password only if it is encrypted
x9z unpack movie.z02 -d ./out # for split archives, name any piece
x9z unpack untrusted.zip -d ./out --skip-unsafe # skip only unsafe entries such as "../" and report them
x9z unpack archive.zip -d . --smart # one top-level item: as is; several: into a new folder
x9z verify download.zip # read to the end (fails if any file can't be extracted)
x9z hash big.iso # BLAKE3 (-a sha256 for SHA-256)These use the same settings file as the app.
x9z config set cpu 50% # use 50% of cores (all | N% | thread count)
x9z config set background on # low priority
x9z pack ./big -o big.x9z --cpu all # all cores for this job only| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | Invalid arguments or usage |
| 2 | I/O error |
| 3 | Crypto error |
| 4 | Wrong password or key, or the data was tampered with |
| 5 | Unsupported format |
| 6 | Corrupted data |
| 7 | Unsafe path |
| 8 | Safety limit exceeded |
| 9 | Cancelled |
| 10 | Not implemented |
| 11 | Backend unavailable |
| 12 | Out of memory |