Your workspace, from a terminal.
sp is one JavaScript file with no dependencies. It needs Node 18 or later, and it speaks to the same API as everything else.
Last updated 15 November 2026
Install
curl -fsSL https://app.saaspocalypse.online/cli/sp.mjs -o sp.mjs
node sp.mjs helpThat is the whole installation. To type sp instead of node sp.mjs, add an alias: alias sp="node ~/sp.mjs". It is not on npm yet. Download the file again to update; node sp.mjs --version shows what you have.
Sign in
Either set the key in the environment, which suits scripts, CI and agents:
export SP_API_KEY=sp_your_keyor save it on this computer:
node sp.mjs loginlogin checks the key and writes it to ~/.config/saaspocalypse/config.json, readable only by you. The environment variable wins when both are set. SP_BASE_URL points the tool somewhere other than https://app.saaspocalypse.online.
Commands
| Command | What it does |
|---|---|
sp workspace | The workspace the key belongs to, its plan, tools and counts. |
sp people list | The team. |
sp projects list | create | Projects; create one with --name. |
sp schedule --start --end | Available, booked and free hours per person. Add --person, --project or --days. |
sp bookings list | create | Bookings in a date range; book people onto a project. |
sp stages | The board's stages. |
sp items list | get | create | update | move | comment | comments | Work items on the boards. |
sp companies list | create | Companies in the CRM. |
sp contacts list | create | Contacts. |
sp deal-stages | The pipeline's stages. |
sp deals list | create | move | Deals; move one to any stage, including won or lost. |
sp pipeline | Totals per stage and per currency. |
sp tables list | get | Tables, and one table's fields and views. |
sp rows list | create | update | delete | Rows; set cells with --set "Field=value" (repeatable) or --values '{json}'. |
sp api <METHOD> <path> [--data json] | Call any API path directly. |
sp login | logout | Save or remove the key on this computer. |
sp help [command] | --version | Help for everything or one command. |
People, projects, bookings, companies, contacts and deals have no update command yet. Use sp api PATCH /deals/deal_… --data ’{"value":12000}’.
Output and exit codes
- Tables by default, for people. Add
--jsonfor the API’s exact answer, for scripts and agents. - Exit code 0 on success, 1 when the API refuses (the message, code and any field messages go to stderr), 2 for a mistake in the command.
--stagetakes a stage’s name or its id.
Examples
$ node sp.mjs schedule --start 2026-11-16 --end 2026-11-20
Id Name Role Available Booked Free
per_RzNVoXkJ4ynx5yv8 Ada Okafor Lead designer 37.5 31.5 6
per_8ncIde3lMm6CvZB8 Ben Ito Developer 37.5 61 0
$ node sp.mjs deals move deal_c0rXEgaZDKF9b6wM --stage Negotiation
Id deal_c0rXEgaZDKF9b6wM
Name Autumn campaign
Stage Negotiation
$ node sp.mjs rows create tbl_YOAs5lJsVlYBHVef --set "Name=API launch post" --set "Status=In progress"
$ node sp.mjs bookings create --project prj_lkxxhNIJ4TBwolH8 --people per_RzNVoXkJ4ynx5yv8 --start 2026-11-21 --hours 4
sp: Ada Okafor isn't contracted to work that day. (refused, HTTP 422)
$ node sp.mjs items list --json | jq '.data[] | select(.dueDate != null) | .title'