Guides

Spendyard Cloud CLI

Sign the CLI in to your company's Spendyard Cloud, push what it reads, pull corrections back, and see the company's subscriptions.

Spendyard Cloud is optional. When your company uses it, the CLI can send what it reads there, so it’s counted with everyone else’s receipts. Spendyard Cloud is in early access; join the waitlist.

Sign in

spendyard cloud login        # opens the browser: check the code, pick the organisation
spendyard cloud status       # who it's signed in as, and where it acts
spendyard cloud switch       # your other organisations, and switching to one

The token is kept in ~/.spendyard/tokens.json, readable only by you.

Push and pull

In short; Push and pull has the details.

spendyard cloud push --dry-run    # what the cloud would take, keeping nothing
spendyard cloud push              # what's new or changed since the last push, originals included
spendyard cloud pull --dry-run    # corrections made in the cloud, field by field
spendyard cloud pull              # bring them to the documents this machine has

Read in the cloud

Upload a file to be read there, with the cloud’s models: no API keys needed on your machine.

spendyard cloud documents upload invoice.pdf --wait

The company’s numbers

spendyard cloud subscriptions
spendyard cloud payments --missing
spendyard cloud vendors
spendyard cloud documents list --search slack

These are what the cloud works out from everything the company has; the local subscriptions and payments are what this machine read.

Anything else

The rest of the API, from a script or a coding agent, is spendyard api: every method listed, described and callable with a JSON request. See Cloud API.

spendyard api list --service document
spendyard api call DocumentService/GetDocument '{"id": 1887}'

Sign out

spendyard cloud logout