Overwride from the terminal

The overwride command rewrites a draft, checks a post and prints any record. It has no dependencies and needs Node 20 or newer. Rewrites need the Pro or API plan; checking and reading records are free and need no key.

Install

git clone https://github.com/Yllasville/overwride.git
npm install -g ./overwride/cli

Use

overwride login                         # paste a key from overwride.com/app
overwride rewrite draft.txt             # prints the rewrite
overwride rewrite draft.txt --footer    # adds the optional footer line
pbpaste | overwride rewrite --title "Launch post"
overwride check "Paste a post or an overwride.com/c/… link"
overwride show 7Gx2kQm9Pa               # draft, rewrite and claim for a record

rewrite reads a file or piped text. Add --json to rewrite, check or show for the raw API response, which makes the CLI easy to use in scripts. check exits 0 on a match and 3 when there is none.

Keys and settings

overwride login saves your key to ~/.config/overwride/config.json, readable only by you. OVERWRIDE_API_KEY overrides it, which suits CI and servers. overwride whoami shows which key and server are in use, and overwride logout forgets the key. Create and revoke keys in your account.

Rewrites from the CLI count against the same allowance as the web app and are stored as Overwride records like any other.