@tryghost/ghst 0.19.1 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -167,10 +167,12 @@ Interactive destructive confirmations also emit `GHST_AGENT_NOTICE:` lines on st
167
167
  Create and publish:
168
168
 
169
169
  ```bash
170
- ghst post create --title "Launch" --markdown-file ./launch.md
170
+ ghst post create --title "Launch" --slug launch --markdown-file ./launch.md
171
171
  ghst post publish <post-id> --newsletter weekly --email-segment all
172
172
  ```
173
173
 
174
+ A leading YAML front-matter block (`---` ... `---`) in Markdown input is dropped rather than rendered into the post body. Its keys are not read, so set the title, tags, slug, and excerpt with flags or `--from-json`.
175
+
174
176
  The email delivery flags (`--newsletter`, `--email-only`, `--email-segment`) belong on `post publish` (or `post schedule` / `post update`) — Ghost's email send pipeline fires on the publish transition, not on create.
175
177
 
176
178
  Pages share the same content flags as posts, including `--slug`, `--tags`, `--from-json`, and `--markdown-file`:
@@ -254,7 +256,7 @@ ghst socialweb reply https://example.com/users/alice/statuses/1 --content "Reply
254
256
 
255
257
  Social web auth note:
256
258
  - `ghst socialweb` bootstraps a short-lived identity JWT from `/ghost/api/admin/identities/`.
257
- - That bridge requires an Owner or Administrator staff access token.
259
+ - Social web requires an Owner or Administrator staff access token.
258
260
  - `ghst socialweb delete` requires `--enable-destructive-actions` and confirmation; use `--yes` in non-interactive scripts.
259
261
  - Public Ghost post publishing still lives under `ghst post`; `ghst socialweb` is for notes, interactions, profile, feed, and moderation flows.
260
262
 
@@ -358,6 +360,7 @@ Notes:
358
360
  - Exposed MCP tools include `ghst/toolGroup` and `ghst/toolGroupTitle` metadata for clients that render grouped tools.
359
361
  - MCP tools also carry standard `readOnlyHint`/`destructiveHint` annotations so clients like Claude Desktop group them into read-only and write/delete buckets automatically.
360
362
  - MCP tools accept an optional `site` argument to target a configured site alias per call. When omitted, `ghst` uses the normal site resolution order.
363
+ - `ghost_post_create` and `ghost_page_create` accept an optional `authors` list of author emails. When it is omitted, the post or page is authored by the token's own user, which lets Contributor and Author tokens create drafts; those tokens should omit `authors`, because Ghost checks the author's user id, not the email.
361
364
  - Use `ghost_site_list` to list configured site aliases without exposing stored credentials.
362
365
 
363
366
  Example multi-instance workflow:
@@ -413,6 +416,12 @@ the CLI.
413
416
 
414
417
  - Re-run auth with `--non-interactive` and explicit credentials.
415
418
 
419
+ `Ghost Admin discovery ... was redirected to ..., which does not serve the Ghost Admin API`:
420
+
421
+ - Something in front of Ghost, such as Cloudflare Access or an SSO gateway, redirected `ghst auth login` to its own login page.
422
+ - Re-run with `--url` set to an address that reaches Ghost without the proxy, or
423
+ - Set `GHOST_URL` to that address and `GHOST_STAFF_ACCESS_TOKEN` instead of logging in.
424
+
416
425
  Commands and flags drift:
417
426
 
418
427
  - Re-check current command docs with `ghst <resource> --help`.