Practical CLI Commands

A reference for the Dineway CLI commands your agent uses most often — what they do, when to use them, and what to watch for.

Use this when

You want to understand what your agent is doing with the Dineway CLI, or you want to ask it to run a specific command. You do not need to memorize these — the agent handles them. But knowing what they do helps you review its work and catch mistakes.

Copy this prompt

Before running any Dineway CLI command, tell me what it does and whether it reads or writes. Run read-only commands first, then explain any write commands before executing them.

Everyday commands

| Command | What it does | Reads or writes? | |---------|-------------|-------------------| | npx dineway content list posts | Shows all blog and news posts | Reads | | npx dineway content list pages | Shows all pages | Reads | | npx dineway content get posts hello-world | Shows details for one post | Reads | | npx dineway menu list | Shows all navigation menus | Reads | | npx dineway menu get primary | Shows the primary navigation | Reads | | npx dineway media list | Shows uploaded images and files | Reads | | npx dineway search rebuild | Rebuilds the search index | Writes | | npx dineway context list | Shows recorded site context | Reads |

Project setup commands

| Command | What it does | When to use | |---------|-------------|-------------| | npx dineway init | Creates a new Dineway project | First-time setup only | | npx dineway seed seed/seed.json | Loads starter content into the CMS | After init, or to reset content | | npx dineway generate types | Creates TypeScript types from your schema | After schema changes |

SEO research commands

| Command | What it does | |---------|-------------| | npx dineway seo content-brief "keyword" --url /page | Generates a content improvement brief | | npx dineway seo dataforseo serp "query" --limit 10 | Checks current SERP results | | npx dineway seo dataforseo keywords "query" --limit 25 | Gets keyword volume and related terms | | npx dineway seo firecrawl scrape https://url --json | Scrapes a competitor page for analysis |

Deployment commands

| Command | What it does | |---------|-------------| | npx dineway deploy forgeway | Deploys the site to production |

What to watch for

  • Read vs. write — always know which commands change content. If the agent says “I’ll update the menu,” ask what command it is running and what will change.
  • Seed overwritesseed replaces content. Do not run it on a site with live changes unless you mean to reset.
  • Draft vs. publish — content commands can create published items. Ask the agent to use draft mode unless you approve publishing.
  • SEO provider quota — Firecrawl and DataForSEO commands use hosted quota. Do not let the agent run unbounded research loops.

How you review CLI output

If the agent runs a command you did not expect:

Show me the exact command you just ran, what it changed, and how I can verify the result.

If something looks wrong:

Undo the last change and show me the state before and after.