Skip to content

Create query command APP-7345#2

Merged
ivpusic merged 1 commit into
client_setupfrom
create_query
Mar 3, 2026
Merged

Create query command APP-7345#2
ivpusic merged 1 commit into
client_setupfrom
create_query

Conversation

@ivpusic
Copy link
Copy Markdown
Member

@ivpusic ivpusic commented Mar 2, 2026

DUNE_API_KEY=<api-key> dune query create --name "my query" --sql "SELECT 1 as cli"

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Mar 2, 2026

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown
Member Author

ivpusic commented Mar 2, 2026

@ivpusic ivpusic changed the title finished task Create query command APP-7345 Mar 3, 2026
@linear
Copy link
Copy Markdown

linear Bot commented Mar 3, 2026

APP-7345 Step 4: `dune query create`

cmd/query/create.go — flags: --name (required), --sql (required), --description, --private, -o. Calls api.CreateQuery(). CLI sets is_temp: false (unlike MCP which defaults temp).

Output: text: Created query 4125432 / json: {"query_id": 4125432}

Acceptance criteria:

  • dune query create --name "Test" --sql "SELECT 1" creates query, prints ID
  • --private sets is_private=true
  • Missing --name or --sql errors
  • API error printed to stderr, exits 1
  • -o json works

Tests:

  • Required flags validation
  • Successful create prints ID (mock API)
  • Private flag passed correctly
  • JSON output format

@ivpusic ivpusic marked this pull request as ready for review March 3, 2026 08:40
@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 3, 2026

PR Summary

Cursor Bugbot is generating a summary for commit 8d1606a. Configure here.

@ivpusic ivpusic requested a review from va3093 March 3, 2026 08:40
@ivpusic ivpusic merged commit 12faf34 into client_setup Mar 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants