dune
Prerequisites
Assume the Dune CLI is already installed and authenticated. Do not run upfront install or auth checks. Just execute the requested dune command directly.
If a dune command fails, inspect the error to determine the cause and follow the recovery steps in install-and-recovery.md:
- "command not found" → CLI not installed. See CLI Not Found Recovery.
- 401 / "unauthorized" / "missing API key" → Auth failure. See Authentication Failure Recovery.
- Unknown subcommand or flag / unexpected output → Possible version mismatch. See Version Compatibility. This skill is written for CLI v0.1.24: if a command listed below is unknown, ask the user to update (
brew upgrade dune-cli, or rerun the install script). - Credit, rate-limit, or billing error → Show the error and the links the CLI prints after it. Do not retry until the user changes their plan or the credits renew.
Dune CLI
A command-line interface for Dune -- the leading blockchain data platform. Use it to write and execute DuneSQL queries against on-chain data, discover datasets, chart results, build dashboards, organize content in folders, schedule queries and alerts, materialize results into tables, submit contracts for decoding, see and cancel the team's runs, search documentation, and monitor credit usage.
Commands run as the API key's owner (a user or a team) and use its credits. New queries and dashboards are public unless created with --private or the team makes them private by default.