keryx post new¶
Description¶
Create a post in an article: a social-media post of the article, named by
you (<id>, a slug unique within the article) with an optional label and image
(spec 0061 D3). The image is the piece's attachment on every platform that takes
one: --image names the file in the bundle, --image-url its public URL
(supplied by you, never derived; Instagram accepts only a URL), --alt its alt
text, which social gen composes when absent. --platform (repeatable) says
which platforms the post is for; a piece is for exactly the platforms it has a
record on (spec 0062 D1), so without it the post starts targeting none and the
first social gen or social set decides. Then compose its copy with
social gen --article <dir> --post <id>, gate it with approve, send it with
publish.
Usage¶
keryx post new <id> --article <dir> [--label <text>] [--brief <text>] [--platform <p>]... [--image <bundle-relative> --image-url <url> [--alt <text>]]
keryx post new launch --article content/post/my-post --label "Launch week" \
--platform instagram --platform linkedin \
--image cover-my-post.jpg --image-url https://phpboyscout.uk/my-post/cover-my-post.jpg
Flags¶
| Flag | Description | Default | Required |
|---|---|---|---|
--article |
the article's bundle directory | yes | |
--label |
a human label for the campaign | ||
--image |
the image file, bundle-relative | ||
--image-url |
the image's public URL | ||
--alt |
the image's alt text | ||
--platform |
platform(s) the post is for; repeatable; none leaves it for social gen to decide |
||
--brief |
framing for the composer (campaign, phase, angle, call to action) |