营销与写作

emdash-cli

emdash-cms/skills

Use the EmDash CLI to inspect and manage an EmDash instance from the command line, including content, schema, media, taxonomies, menus, search, authentication, seeds, migrations, generated types, and whole-site export and import.

  • 840 次安装
  • 9 星标
  • 收录于

安装命令

npx skills add https://github.com/emdash-cms/skills --skill emdash-cli

SKILL.md

EmDash CLI

The EmDash CLI (emdash, with the short alias em) manages EmDash CMS instances. Commands fall into two categories:

  • Local commands work with project files or a configured database: init, doctor, seed, migrate, export-seed, and secrets.
  • Remote commands talk to a running EmDash instance: types, login, logout, whoami, content, schema, media, search, taxonomy, menu, and site.

Run npx emdash --help and npx emdash <command> --help for the installed version's exact commands and flags. Resolve the current target with a read command before a destructive or bulk mutation; examples in this skill do not authorize changing an instance the user did not place in scope.

Authentication

Remote commands resolve auth automatically:

  1. --token flag
  2. EMDASH_TOKEN env var
  3. Stored credentials from emdash login
  4. Dev bypass (localhost only — no token needed)

For a localhost development server with the development bypass enabled, the client can authenticate automatically. For a remote instance, run emdash login --url https://example.com or provide a scoped token.