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-cliCheck that your shell can find the command.
poll --versionSign in
Start the browser sign-in flow. The CLI stores the approved session on your device.
poll auth loginpoll auth statusToken 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 trendingUse POLL_API_URL only when you must connect to another Poll API environment. See the authentication guide before you choose token scopes.
Troubleshooting
- If
pollis not found, add the npm global binary directory to your PATH. - If sign-in fails, run
poll auth logoutand start the sign-in flow again. - If a command is denied, check that your token has the scope for that action.