Install the Poll CLI

Install the command line interface, sign in, and run your first Poll command.

Requirements

Install Node.js 18 or a later LTS release. The package includes the poll command.

Install

npm install -g @solworks/poll-cli

Check that your shell can find the command.

poll --version

Sign in

Start the browser sign-in flow. The CLI stores the approved session on your device.

poll auth login
poll auth status

Token authentication

For automation, create a Personal Access Token in Poll settings. Then set the token for the process that runs the CLI.

POLL_API_TOKEN=polld_xxxxx poll bets trending

Use POLL_API_URL only when you must connect to another Poll API environment. See the authentication guide before you choose token scopes.

Troubleshooting

  • If poll is not found, add the npm global binary directory to your PATH.
  • If sign-in fails, run poll auth logout and start the sign-in flow again.
  • If a command is denied, check that your token has the scope for that action.