Jake Goldsborough

I Just Wanted a CLI

Nov 27, 2026

3 min read

Necessity is the mother of invention. Apparently, inconvenience is the mother of four CLIs and a project generator.

I wanted to pay my phone bill. Mint Mobile's account page was having a bad time in my browser, so I started building a terminal client. Inspect the account, check usage, renew the plan. Seemed reasonable.

Then the CLI ran into a Cloudflare browser challenge. Eventually I opened a clean Firefox session and paid the bill there.

Very productive. Bill paid. Entirely separate Rust project acquired.

This keeps happening

By this point I had mint-cli, bandcamp-cli, mailgun-cli, and namecom-cli. Phone service, music, email configuration, and DNS. Different reasons to exist, but a familiar set of decisions every time.

Where do credentials go? How do I keep them out of command arguments and error messages? What should JSON output look like? Can I test this without touching my actual account? What happens if a request times out after the server has already done the thing?

That last one gets interesting when "the thing" is creating an SMTP credential or changing DNS. A timeout is not proof that nothing happened.

Mint and Bandcamp are Rust workspaces. Mailgun and Name.com are Nushell tools. I wasn't looking to rewrite all four. I just kept recognizing work I'd already done.

I had a similar thought after building shellbooks: each tool in the series should get to start a little further along.

So I asked the agent to inspect all four and help pull out a starting point.

Another project, obviously.

A CLI for starting CLIs

It's called cli-anything. The first version generates a Rust API library and a separate CLI crate:

cli-anything init acme --path ~/dev/acme-cli

The output includes hidden credential entry backed by the Linux keyring, versioned JSON output, HTTP errors that don't dump private response bodies, mocked tests, and a Nix flake. There's also an API inventory for recording where an endpoint came from and whether we've actually verified it.

The generated project starts with local information and credential-storage commands. It doesn't pretend to know how your service logs in. Storing a token isn't the same as authenticating, and a template isn't going to solve Mint's browser challenge.

Once generated, it's ordinary source code. It doesn't need cli-anything around to build or run. I wanted the next project to inherit the useful bits without signing up for a framework I now have to maintain across everything.

We tested the generated project too: build, mocked HTTP requests, JSON output, formatting, Clippy, and the Nix build. A generator that successfully writes broken Rust would be a pretty annoying result here.

I've already used it to build fornex-cli. Apparently I needed the next CLI before I'd finished writing about the tool that starts them.

Anyway, the bill is paid. Now I have a tool for the next thing that annoys me.

Projects beget projects. I just wanted to pay my phone bill.