Command line

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 help

That 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_key

or save it on this computer:

node sp.mjs login

login 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

CommandWhat it does
sp workspaceThe workspace the key belongs to, its plan, tools and counts.
sp people listThe team.
sp projects list | createProjects; create one with --name.
sp schedule --start --endAvailable, booked and free hours per person. Add --person, --project or --days.
sp bookings list | createBookings in a date range; book people onto a project.
sp stagesThe board's stages.
sp items list | get | create | update | move | comment | commentsWork items on the boards.
sp companies list | createCompanies in the CRM.
sp contacts list | createContacts.
sp deal-stagesThe pipeline's stages.
sp deals list | create | moveDeals; move one to any stage, including won or lost.
sp pipelineTotals per stage and per currency.
sp tables list | getTables, and one table's fields and views.
sp rows list | create | update | deleteRows; set cells with --set "Field=value" (repeatable) or --values '{json}'.
sp api <METHOD> <path> [--data json]Call any API path directly.
sp login | logoutSave or remove the key on this computer.
sp help [command] | --versionHelp 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 --json for 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.
  • --stage takes 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'