# Post commands: publish, schedule, withdraw

URL: /code/cli/post/verbs · Id: `page:code/cli/post/verbs`

> The Post Verbs publish, schedule, withdraw as CLI commands, with inputs, result, refusals and an example.

Reference for [Post](/business/nouns/post), one group of [Post commands](/code/cli/post).

### Post.publish
Publish sends a Post out through its Handle once every claim it states resolves to a live record. [Verb page](/business/nouns/post/publish?interface=cli).

```text
npx startup-builder do Post.publish --json '<input>' [--try | --send | --do]
```

Emits [`Post.published`](/business/events/Post.published).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The Post to publish. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The published Post. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
npx startup-builder do Post.publish --json '{"post":"post_HiXn57rBdP"}'
```

### Post.schedule
Schedule puts a drafted Post on its Handle’s calendar for a set time. [Verb page](/business/nouns/post/schedule?interface=cli).

```text
npx startup-builder do Post.schedule --json '<input>' [--try | --send | --do]
```

Emits [`Post.scheduled`](/business/events/Post.scheduled).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The drafted Post. |
| `at` | `datetime` | Yes | When it goes out. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The scheduled Post. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
npx startup-builder do Post.schedule --json '{"post":"post_HiXn57rBdP","at":"2026-10-22T12:00:00Z"}'
```

### Post.withdraw
Withdraw takes a published Post down from its venue and keeps the record, its reach and its replies. [Verb page](/business/nouns/post/withdraw?interface=cli).

```text
npx startup-builder do Post.withdraw --json '<input>' [--try | --send | --do]
```

Emits [`Post.withdrawn`](/business/events/Post.withdrawn).

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The Post to take down. |
| `reason` | `text` | Yes | Why it comes down. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `post` | [Post](/business/nouns/post) | Yes | The withdrawn Post. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```bash
npx startup-builder do Post.withdraw --json '{"post":"post_HiXn57rBdP","reason":"Example reason"}'
```