---
title: create_record
description: Writes one row into a table this site owns.
sidebar:
  order: 46
---

Writes one row into a table this site owns. Typed inside `bash`, where `help create_record` prints the same.

```text
Usage: create_record HANDLE VALUES [options]

Writes one row into a table this site owns. **A post is a row**, not a
page: a blog is one `posts` table, the page every post renders
through, a row per post, and a page at `/blog` listing them. A page
each would put every post in the owner's Pages sidebar and in every
nav that loops `site.pages`, with no listing and no shared address.

Publication follows the table's rule from get_site: all rows, a date
that has come, or a boolean that is true. A new row
starts the table's active workflows, the same as a visitor's
submission 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.
```
