create_record
Writes one row into a table this site owns. Typed inside bash, where help create_record prints the same.
Usage: create_record HANDLE VALUES [options]
Writes one row into a table this site owns. **A post is a row**, not apage: a blog is one `posts` table, the page every post rendersthrough, a row per post, and a page at `/blog` listing them. A pageeach would put every post in the owner's Pages sidebar and in everynav that loops `site.pages`, with no listing and no shared address.
Publication follows the table's rule from get_site: all rows, a datethat has come, or a boolean that is true. A new rowstarts the table's active workflows, the same as a visitor'ssubmission does. Read `vzk/tables` first.
Options: --handle TEXT (required) Public table handle from get_site. --values JSON (required) The row's own values, keyed by the field names its table declares: { "title": "How I light a winter wedding", "body": "…markdown…" }. Checked against the definition and cut down to it, so a key the table does not name is dropped, a value of another type is cast to what the field holds (5 under a text field is stored as "5"), and one the type refuses even then comes back as a sentence naming the field. A field pointing at rows takes the `tenant_record_id` list_records shows for each: 14, or [3, 7] where it holds a list. --slug TEXT Where this row answers, as the last segment of its address. Leave it out and the title is slugged. --json OBJECT Every argument at once, as one JSON object; --json - reads it from stdin.