# ezi wiki

The ezi wiki keeps Markdown and HTML pages (up to 4 MiB each), so plans,
reports and notes your agents write can be found again. The kits' skills can
upload to it.

The hosted ezi service (`https://api.ezikit.dev`) stores no customer
content, so it does not offer the wiki. The wiki works only with a local
`ezi-server`; against the hosted service every `ezi wiki` command answers:

```text
Error: the hosted ezi service does not offer the wiki; it works only with a local ezi-server
```

See [Your data](https://ezikit.dev/docs/your-data/) for what the hosted service keeps.

## Requirements

A local `ezi-server` and an account signed in to it (`ezi login`).

```bash
ezi wiki status
```

```text
ezi wiki is available for you@example.com
  reader http://127.0.0.1:47223
```

## Upload and find pages

```bash
ezi wiki upload notes.md
ezi wiki upload plans/my-plan/plan.md --category plans --tags plan,my-repo
ezi wiki list
```

```text
uploaded pg_kd7gqjddv3f4qpz4 (Notes)
uploaded pg_4edf2uodzngsanzg (My plan)
pg_4edf2uodzngsanzg  My plan
  category "plans", tags plan, my-repo
pg_kd7gqjddv3f4qpz4  Notes
2 of 2 pages
```

The title comes from the page's first heading. Other commands work on the
page id:

```bash
ezi wiki show pg_kd7gqjddv3f4qpz4 --content
ezi wiki search "release checklist"
ezi wiki update pg_kd7gqjddv3f4qpz4 --title "Release notes"
ezi wiki delete pg_kd7gqjddv3f4qpz4 --yes
```

Without an interactive terminal, `delete` needs `--yes`.

Pages are private to your account. `ezi wiki folder` groups them.

## Share links and published pages

`ezi wiki share`, `ezi wiki publish` and `ezi wiki site` create links that
other people can open. The local server's wiki reader answers them, on
`http://127.0.0.1:47223` by default, so they open only on the computer that
runs the server.
