Run npx poll-express --help with Node.js 20 or later. If you use Bun, run bunx --bun poll-express --help.
Connect your account
Create a personal API key in Account → Connections. Leave it read-only to list polls and export results. Choose Create, edit and delete polls to change a poll, or Run live polls and moderate answers to control a Live poll.
Run npx poll-express login, then paste the key at the prompt and press Enter. The CLI saves it in a private config file on this computer. In scripts, give the CLI the key through the POLL_EXPRESS_API_KEY environment variable.
npx poll-express whoami
npx poll-express polls list --jsonCreate and run a poll
Use the poll ID from polls create or polls list, then set POLL_ID to that value. Use the join link from polls get to invite people to answer.
npx poll-express polls create --title "Team check-in"
npx poll-express questions add "$POLL_ID" --prompt "How was the week?" --type scale --max 5
npx poll-express polls get "$POLL_ID"
npx poll-express live next "$POLL_ID"
npx poll-express live open "$POLL_ID"
npx poll-express live close "$POLL_ID"
npx poll-express live show "$POLL_ID"live next selects the first question from the lobby. Moving forward or back does not change which questions are open. live show and live hide change result visibility. You can target a specific question for voting or visibility with --question 2.
Start with a website template by passing its slug, such as --from class-check-in. To create the same poll more than once, pass a JSON file in the Create a deck request format. --title sets the new poll’s title either way.
Read or export results
results --json reads the private snapshot for your account. results --csv and export use the export formats, which omit concealed tallies and hidden short text responses. You can export an owned poll even when its shared results link is off.
npx poll-express results "$POLL_ID" --json
npx poll-express export "$POLL_ID" --csv -o results.csv
npx poll-express export "$POLL_ID" --jsonAdd --json to any command for script-friendly output. Errors go to stderr and set a nonzero exit code. Run any command with --help to see an example. To permanently delete a poll and its responses, run polls delete "$POLL_ID" --yes.