Skip to content

Blocklive CLI

On this page

Use Blocklive from your terminal, signed in as yourself, with only what your roles allow. List your events, check one event's sales and check-ins, and export its guests, by hand or from a script.

What you can do

TaskCommand
Sign in through your browserblocklive login
See who you're signed in asblocklive whoami
List the events you can seeblocklive events list
See an event's sales and check-insblocklive event show summer-opening
List an event's guestsblocklive guests list summer-opening --all
Get any of these as JSON for a scriptadd --json
Sign out, here and on Blockliveblocklive logout

Every command is described in commands; JSON, errors and exit codes are in scripts and errors.

Install

The CLI needs Node.js 20 or later. Check with node --version, then install the CLI from npm:

Shell
npm install --global @blocklive/cli
Shell
blocklive --version

Or run it once without installing:

Shell
npx @blocklive/cli login

To check that the package you installed is the one Blocklive published, ask npm to verify its registry signatures:

Shell
npm audit signatures

To update, run the install command again. When your version is too old to talk to Blocklive, every command stops with upgrade_required and the command to run.

Quick start

You need a Blocklive account with a role at a team, event or organization, and two-step verification turned on (see two-step verification).

1. Sign in. The terminal prints a code; open blocklive.io/cli, enter it, and approve.

Shell
blocklive login

2. List your events and note the slug of the one you want.

Shell
blocklive events list

3. See how it's selling.

Shell
blocklive event show summer-opening

4. Export its guests' emails (managers and admins).

Shell
blocklive guests list summer-opening --all --json | jq -r '.guests[].email'

Signing in step by step, and what you choose when you approve, are in signing in.

How it works

  • You sign in through your browser. blocklive login asks Blocklive for a one-time code. You type it at blocklive.io/cli, where you're signed in and confirm two-step verification, and approve what the CLI may do. The CLI never sees your password or email code. (This is the "device sign-in" many command-line tools use.)
  • It acts as you, never more. Each request is checked again on Blocklive: your account, your roles at the places you approved, and the limits. Lose a role and the CLI loses it at the same moment.
  • Its sign-in is short-lived. Access lasts 15 minutes and is renewed automatically; the sign-in itself ends after 12 hours at most, sooner if unused. See how long a sign-in lasts.
  • The sign-in is kept in your keychain, not in a file or an environment variable. See where the sign-in is kept.
  • It talks only to Blocklive over HTTPS. The CLI's own connection to Blocklive isn't a public API and changes with the CLI. To build your own app, use the developer API with an API key.

CLI or developer API?

Blocklive CLIDeveloper API
Who it's forYou, at a terminal or in your own scripts.An app or a server: a door app, a CRM sync.
Signs in asYou, with your roles.An API key an organizer made.
LastsUp to 12 hours, then sign in again.Until the key is revoked or expires.
Guests' detailsWhat your role shows on the Attendees page.Only the details shared with the key.

Help

Email support@blocklive.io with the request_id of any error.