# jdx upgrade

IDE equivalent: Self-update from GitHub Releases

Self-update this jdx from GitHub Releases (latest, or --version TAG). Only works on release installs (install-release.sh); source builds are refused. --check only reports whether an update exists. Exits 1 when the tag has no release, 3 on a non-release install, 5 on download failure.

## Usage

```text
jdx upgrade [<options>]
```

## Options

| Option | Description |
|---|---|
| `--json` | Emit machine-readable JSON instead of human-readable text (same information, D-007). |
| `--check` | Only report whether an update exists; never download or install. |
| `--version=<text>` | Upgrade (or check) a specific release tag, e.g. --version v1.1.0. Defaults to the latest release. |
| `--repo=<text>` | GitHub repo to upgrade from as OWNER/NAME (default MohammadMD1383/jdx). |
| `-h, --help` | Show this message and exit |

## Full help text

```console
$ jdx upgrade --help
Usage: jdx upgrade [<options>]

  Self-update this jdx from GitHub Releases (latest, or --version TAG). Only works on release installs (install-release.sh); source builds are refused. --check only reports whether an update exists. Exits 1 when the tag has no release, 3 on a non-release install, 5 on download failure.

Options:
  --json            Emit machine-readable JSON instead of human-readable text (same information, D-007).
  --check           Only report whether an update exists; never download or install.
  --version=<text>  Upgrade (or check) a specific release tag, e.g. --version v1.1.0. Defaults to the latest release.
  --repo=<text>     GitHub repo to upgrade from as OWNER/NAME (default MohammadMD1383/jdx).
  -h, --help        Show this message and exit
```

## Learn more

Guide: [Installation](https://mohammadmd1383.github.io/jdx/docs/installation/) · [All commands](https://mohammadmd1383.github.io/jdx/docs/reference/)
