# Update

Three things update separately: the `ezi` program, the kits you installed,
and the products you downloaded (ezi Render, ezi harness). Kit and product
updates need a signed-in account and a license whose update window covers the
new release. The `ezi` program itself is public: `ezi update cli` works even
when the session has expired.

## Everything at once

On an interactive terminal, run:

```bash
ezi update
```

It walks through each step (the `ezi` program, global kits, this project's
kits) and applies only the steps you accept. In a script, or to accept every
step, add `--yes`. Without `--yes` a script only previews. The preview lists
each file the update would create, update or remove, and each file you changed
that it would leave alone; a long list ends with `... and N more`:

```text
[planned] development/claude-code: would write 1 file(s), 0 removed, 1 user-modified skipped
  update .claude/rules/development-rules.md
  skip   .claude/agents/change-reviewer.md (user-modified)
[i] Preview only. Apply with: ezi update --yes
```

A preview is not an error: it exits with status 0. In a script,
`ezi update --json` reports `pending_changes`, the number of file changes
`--yes` would make (0 when there is nothing to apply).

## The ezi program

Check, then apply:

```bash
ezi update cli --check
ezi update cli --yes
```

```text
[i] ezi 1.0.1 is available on the stable channel (current 1.0.0). Apply with: ezi update cli --yes
[OK] Updated ezi 1.0.0 -> 1.0.1 (verified with ezi-release-2bcd486ba633df5c).
```

When nothing newer is published it prints:

```text
[OK] ezi 1.0.0 is up to date on the stable channel.
```

Every update is checked against the release key built into `ezi` before it
replaces the program.

`ezi update cli` renews an expired session on its own. When the session cannot
be renewed (for example after the device was deactivated), it reads the public
release pointer instead, so `ezi login` is not needed to update the program.
`--version`, `--include-desktop` and `--changelog` still need a signed-in
session.

`ezi update cli` follows the stable channel. To follow the beta channel, save
it once, or pass `--channel beta` for one run:

```bash
ezi config set updates.channel beta
ezi update cli --check
```

```text
set updates.channel = beta (user scope) in /Users/you/.ezi/config.yaml
backed up prior config to /Users/you/.ezi/backups/config/config-20261114T081410.999720000Z.yaml
[i] ezi 1.0.1-beta.1 is available on the beta channel (current 1.0.0). Apply with: ezi update cli --yes
```

`ezi config set updates.channel stable` switches back. A beta build of ezi
follows the beta channel until you set `updates.channel`.

To go back to an earlier release:

```bash
ezi update cli --version 1.0.0 --yes
```

```text
[OK] Updated ezi 1.0.1 -> 1.0.0 (verified with ezi-release-2bcd486ba633df5c).
```

`ezi update cli --changelog` shows the release notes.

## Kits

In a project:

```bash
ezi update --yes
```

```text
[updated] development/claude-code: wrote 6 file(s), 0 removed, 0 user-modified skipped
```

For kits installed with `--global`:

```bash
ezi update --global --yes
```

Files you changed since the install are skipped, not overwritten. Each run
takes a snapshot of the files it writes first, so `ezi backup restore` can undo
it. `--show-diff` prints what would change; `--force` overwrites your changes
too, after a snapshot.

`ezi version list` shows the installed kit versions.

## Products

ezi Render and the ezi harness are not updated by `ezi update`. After the
`ezi` program changes version, render commands print:

```text
[!] ezi Render 1.0.0 is installed, but this is ezi 1.0.1; run `ezi render install` to install the matching release
```

Install the matching releases:

```bash
ezi render install
ezi harness install
```

Restart a running harness afterwards (`ezi harness stop`, then
`ezi harness start`).

## Automatic updates

Off by default. To update the `ezi` program and global kits in the background
once a week (or `daily`):

```bash
ezi update --schedule weekly
```

```text
[OK] Auto-update schedule: weekly (0 project(s)); nothing was updated now
```

`ezi update --status` shows the schedule and the last result.
`ezi update --schedule off` turns it off. Projects join only when you add
them with `--project <dir>` (after `ezi project add <dir>`), and only update
when their git tree is clean and no agent session is running in them.
Setting `EZI_NO_AUTO_UPDATE=1` stops background updates.

## When your update window ends

Releases published after your license's update window are refused; what you
already installed keeps working. `ezi account licenses` shows the window
(`UPDATES THROUGH`) and the newest kit version it covers (`LATEST COVERED`).
A renewal extends the window by a year.

A license is paid once per year and renewed by hand. There is no
subscription: nothing is charged automatically, and no payment repeats on its
own.

Renew by paying for the same plan again with the same license email: at
checkout, enter the address your license was issued to (signed in on the
site, your account's address is filled in for you, and the **Renew for a
year** button on the account page opens the checkout with the license email
filled in). Renewals are matched by
that license email, not by the PayPal account that pays, so any PayPal
account can pay. An active license is extended by a year from the end of its
current window; an expired one is renewed for a year from the day you pay. A
revoked license cannot be renewed: paying again issues a new license with a
new key. A payment for another address issues a separate license instead; to
have it merged into your existing license, write to support@ezikit.dev.

To cancel, do nothing: there is no subscription to cancel. If you do not pay
again, updates stop at the end of the window and the software you installed
keeps working. For a refund, see the [refund policy](https://ezikit.dev/legal/refund-policy/).

