Governate
Sign in Start a trial

Command-line tool

governate is a single program for macOS, Linux and Windows. It does everything the website does for files, and suits scripts.

Signing in

governate login https://docs.example.com
governate whoami
governate logout

A sign-in from the command line lasts 30 days.

Commands

CommandWhat it does
governate protect <file>...Encrypts files; writes <file>.gvf beside each.
governate open <file.gvf>...Decrypts files you are allowed to open.
governate share <file.gvf> <email>Lets someone read a file.
governate unshare <file.gvf> <email>Withdraws that.
governate revoke <file.gvf>...Stops everyone from opening these files.
governate transfer <file.gvf> <email>Hands a file to another member.
governate permissions <file.gvf> [flags]Shows or changes what readers may do.
governate log <file.gvf>Who did what with a file.

protect and open accept -f to overwrite existing output and -j N to set how many files are handled at once. protect also accepts -upload.

Permission flags

Each is off until allowed; add =false to forbid again.

governate permissions plan.docx.gvf -edit -print
governate permissions plan.docx.gvf -access-count 3 -until 2027-06-30
governate permissions plan.docx.gvf -domains example.com,*.partner.example
governate permissions plan.docx.gvf -reset
FlagMeaning
-download-originalReaders may get the unprotected file.
-editReaders may change the document.
-copy-pasteText may be copied out.
-printPrinting is offered.
-screen-captureDo not cover the document when its window is not in front.
-shareReaders may share further.
-screen-watermark=false, -print-watermark=falseTurn a watermark off.
-access-count NOpens allowed per person; 0 is unlimited.
-from DATE, -until DATEYYYY-MM-DD, or none for unlimited.
-domains a.com,*.b.comWho it may be shared with; none for anyone.
-message TEXTShown to people when they open the file.
-resetBack to reading only.

How opening works

governate open reads the installation's address from the .gvf, checks the installation's signature on it, and asks that installation for the file's key. The key comes back wrapped to a one-time key made for that request, so it is never sent in a form anyone else could use. The file is then decrypted on your machine.