Overview
Thedex polls command manages poll creation, editing, status control, results analysis, and publishing to test and production environments.
Usage
Subcommands
Validate
Validate the polls.json file schema.Path to polls.json file (overrides default)
Create
Create a new poll draft.Poll question text
Poll visibility:
public or membersInitial status:
draft, open, or closedYear for inDex call reference
Path to polls.json file
Edit
Edit an existing poll.Poll ID to edit
Update poll question
Update visibility:
public or membersUpdate status:
draft, open, or closedISO 8601 timestamp for automatic close
Enable/disable manual close mode
Update inDex call sequence number
Update inDex call year
Close / Open
Change poll status.Poll ID to update
Publish
Publish polls to remote environment.Target environment:
test or prodPath to polls.json file
Analytics Commands
Overview
Get overview of all polls with vote counts.Environment to query:
test or prod (default: test)Time window for stats (e.g.,
30d, 90d)Live
Get live voting results for a poll.Poll ID to query
Environment to query (default:
test)Trend
Visualize voting trends over time.Poll ID to analyze
Environment to query (default:
test)Time window (e.g.,
7d, 30d, 90d)Time bucket size:
hour, day, weekChart type:
line, stack, or velocityOutput raw JSON instead of chart
Snapshots
List published result snapshots.Poll ID to query
Publish Results
Publish poll results snapshot.Poll ID to publish results for
Path to markdown summary file
Results headline text
Create as draft (don’t publish immediately)
Time window for trend data (default:
90d)Environment (default:
test)Promote Results
Promote a draft snapshot to published state.Poll ID
Snapshot version number to promote
Examples
Create and open a poll
View live results
Visualize voting trends
Close a poll
Publish results
Publish to production
Workflow
Desk Mode
Launch the interactive polls desk for real-time monitoring:Environment for operations (default:
test)Desk layout configuration
Start in paused mode
See Also
- dex newsletter - Newsletter campaigns
- dex catalog - Catalog management