> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# CLI verbs

> Call functions and read addresses on an installation from the command line.

The CLI calls application functions with the selected credential. Its five
address reads are labelled operator acts.

## Addresses

A function, table, role or label is named by its tree path, with dots. `/`
joins a path to a key or a family member.

| Address | Example |
| - | - |
| A function | `orders.place` |
| A point, by key | `orders.orders/ord_1` |
| A point, by a composite key or unique field set (JSON) | `stock.stock/{"warehouse":"w1","sku":"s1"}` |
| A selection | `orders.orders`, narrowed with the address flags |
| A family member | `access.tenant/acme` |

Arguments are `key=value` for a string, or `key:=json` for any other value.

## Call functions

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection query notes.list
bijection mutate notes.add text=Hello --once note-1
bijection trial orders.place cents:=100
```

| Verb | Does |
| - | - |
| `query <path> [args…]` | Run a query once and print its `Result`. |
| `mutate <path> [args…]` | Run a mutation: one transaction under one label. `--once` names the logical effect: the same `once` and args answer the original. |
| `trial <path> [args…]` | Run a call in a discarded world. Prints its `result`, `writes` and `tasks`; nothing commits. A guard's refusal names the guard. |

## Read

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection get orders.orders/ord_1
bijection has orders.orders/ord_1
bijection list orders.orders --where state=open --by placed --descending --first 20
bijection page orders.orders --size 50
bijection count orders.orders --where state=open
```

| Verb | Reads |
| - | - |
| `get <point>` | One point: the fact, or `null`. |
| `has <point>` | One point's presence only. |
| `list <selection> --first <n>` | All of a bounded selection. `--first` is required. |
| `page <selection> --size <n> [--cursor <c>]` | One window of a selection: its `facts` and `next`. Pass `next` as `--cursor` for the following page. |
| `count <selection>` | The exact number of facts. |

A selection is a table path narrowed with:

| Flag | Address method |
| - | - |
| `--where field=value` | `.where({ field: value })`. A range is `field:={"from":…,"to":…}`, half-open. Repeat for several fields. |
| `--by <field>` | `.by(field)` |
| `--descending` | `.descending()` |
| `--first <n>` | `.first(n)` |
| `--pick <a,b>` | `.pick("a", "b")` |

As in code, a selection that no declared index serves is refused with the
index to add.

## Change data

Call a declared mutation with `bijection mutate`. For an operational data fix,
expose a mutation with `allow: [operator]` and include it in `bijection.lock`.
The table's `writers` applies to the mutation. Mutations also submit tasks,
withdraw tasks, and perform branch and grant acts through `ctx`.

To resolve a Version at a system instant and read at it:

```sh theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection version --at 2026-11-20T10:00:00Z
bijection query orders.recent --in <version>
```

## The frame

The frame flags depend on the verb.

| Flag | Frame field |
| - | - |
| `--as person:<subject>` | A development credential for `query`, `mutate` and `trial` on non-production installations. |
| `--under <label>` | The label the act happens under: a label path, or `path/member`. Separate a conjunction with commas. |
| `--in <world>` | A branch or a Version token. The five read verbs, `query`, `mutate` and `trial` accept it. |
| `--at <instant>` | The valid instant, ISO 8601 with an offset. Reads and queries only. |
| `--seen <version>` | Answer from state at least this new. A mutation's result carries its `version`. |

Add `--format json` to print exact values, and `--installation <project>:<name>` to
act on an explicit deployment.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.