dsc post¶
Operations on individual posts (not whole topics). Complements dsc topic pull/push/sync, which only work on the OP.
dsc post pull¶
Downloads the raw Markdown body of the specified post. Writes to <local-path> if given, otherwise to stdout.
dsc post push¶
Replaces the body of the specified post with the contents of <local-path> (or stdin if omitted, or -). Requires either an admin API key or a key whose user is the post author. (Alias: dsc post edit.)
dsc post delete¶
Soft-deletes the post. This is post-ID based; use it when you know the specific post ID. To delete a whole topic by topic ID, use dsc topic delete. Supports --dry-run (or -n).
dsc post move¶
Moves the post to a different topic. dsc infers the source topic from the post itself, so you only supply the destination. Prints the URL of the target topic on success. Supports --dry-run.
Notes¶
- Post edits and deletes require either admin scope or that the API user owns the post.
- Moving a post that is the first post of its topic will move the whole topic. Discourse's API enforces this.