Command line
The hap CLI
Run your Happenings page from the terminal. Events, tickets, orders and members are one command away, with JSON for your scripts.
curl -fsSL https://happenings.social/install.sh | bashApple silicon and Intel
curl -fsSL https://happenings.social/install.sh | bashx86_64 and arm64
What it installs
- The
happrogram, in /usr/local/bin or ~/.local/bin - The Happenings skill for any coding agents it finds
$ hap login Scan with the Admin app, or enter this code: K7QD-M2XP Waiting for approval... (Ctrl-C to cancel) $ hap access pages use fredagsbar-aarhusActive page set to Fredagsbar Aarhus (fredagsbar-aarhus) [5e2c9a10-7d41-4b6e-9f3a-2c81d0e4b7a5] $ hap events listID TITLE STATUS START VENUE --------------------------------------------------------------------------------------3f9a2c71 Fredagsbar EVENT_STATUS_PUBLISHED 2026-09-25 15:00 Studenterhuset 8b41e0d2 Rusfest 2026 EVENT_STATUS_PUBLISHED 2026-10-03 21:00 Train c07d5a19 Quiz night EVENT_STATUS_DRAFT 2026-10-08 19:30 Stakladen $ hap events list --json | jq -r '.[].title'FredagsbarRusfest 2026Quiz nightUp and running in a minute
Four steps from zero to your first list of events.
- 1
Install
One command picks the right build for your machine and puts hap on your PATH.
curl -fsSL https://happenings.social/install.sh | bash - 2
Sign in
Scan the QR code with the Admin app. On the same computer you can sign in in the browser instead.
hap loginhap login --browser - 3
Pick your page
See the pages you manage and make one your default.
hap access pages listhap access pages use <slug> - 4
Go
Every command takes --json, and lists take --csv too.
hap events list --json
What you can do
Commands follow your role on each page. Run hap --help for everything.
Events
Create, publish and cancel events, and see who's coming.
hap events listhap events publish <id>Tickets and check-in
Ticket types, comps, check-ins and live door stats.
hap tickets list --event <id>hap checkin stats --event <id>Orders
Orders, refunds and CSV exports for your books.
hap orders listhap orders export --start 2026-09-01 --output orders.csvMembers
Find, approve and export members, and manage plans.
hap members find annahap members exportAnalytics
Headline numbers, daily trends, funnels and retention.
hap analytics page-quick-statshap analytics page-timeseriesAnnouncements
See who'll get it, then send a page announcement.
hap notifications preview-audiencehap notifications send
Every command explained
Built-in help for each command, with examples.
hap --helpUpdate and uninstall
Updating is one command. Uninstalling takes three.
Update
Check for a new version, then install it.
hap update --checkhap updateUninstall
Sign out, remove the program, then your settings.
hap logoutsudo rm /usr/local/bin/haprm -rf ~/.happeningsInstalled without sudo? Then hap lives in
~/.local/bininstead.