CLICommands

poll

snug poll <COMMAND>

Poll, voting, and tally operations.

Subcommands

CommandWhat it does
createCreate a new poll
listList polls
getGet poll details
voteSubmit a ballot
resultsGet aggregate results
ballotGet the caller's ballot receipt
add-optionAdd an option to a poll
closeClose a poll early
finalizeFinalize an agent-quorum poll once quorum is satisfied
streamStream live result and quorum updates over a WebSocket

Run snug poll <command> --help for that command's own options. The global options apply everywhere.

Examples

snug poll create --title "Which feature next?" --options "Feature A,Feature B" --results-visibility public
snug poll create --title "Rank proposals" --strategy ranked_choice --options "A,B,C"
snug poll list --page-size 10
snug poll get --poll-id <uuid>
snug poll vote <uuid> --option opt_a
snug poll vote <uuid> --options opt_a,opt_c
snug poll vote <uuid> --ranked opt_a,opt_b,opt_c
snug poll vote <uuid> --write-in "Another option"
snug poll results --poll-id <uuid>
snug poll ballot --poll-id <uuid>
snug poll add-option --poll-id <uuid> --label "Feature C"
snug poll close --poll-id <uuid>
snug poll finalize --poll-id <uuid>
snug poll stream <uuid>

Next

On this page