{
  "topic": "install",
  "path": [
    "install"
  ],
  "title": "install — install and upgrade the cyoda binary",
  "synopsis": "cyoda is one binary. Every release on `https://github.com/cyoda/cyoda-go/releases` has archives for Linux and macOS (`amd64`, `arm64`) and Windows (`.zip`), `.deb` and `.rpm` packages for Linux, a `SHA256SUMS` file, and keyless Sigstore (`cosign`) signatures for the archives and `SHA256SUMS`. The container image is `ghcr.io/cyoda/cyoda`. A binary installed by any route below runs with the in-memory backend until it is given a configuration: `cyoda init` writes a user config that selects sqlite (see `cyoda help cli init`), and the `.deb`/`.rpm` packages ship a system config that does.",
  "body": "# install\n\n## NAME\n\ninstall — ways to install the `cyoda` binary, and how to upgrade it.\n\n## SYNOPSIS\n\n```\nbrew install cyoda/cyoda-go/cyoda\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | sh\ngo install github.com/cyoda/cyoda-go/cmd/cyoda@latest\n```\n\n## DESCRIPTION\n\ncyoda is one binary. Every release on `https://github.com/cyoda/cyoda-go/releases` has archives for Linux and macOS (`amd64`, `arm64`) and Windows (`.zip`), `.deb` and `.rpm` packages for Linux, a `SHA256SUMS` file, and keyless Sigstore (`cosign`) signatures for the archives and `SHA256SUMS`. The container image is `ghcr.io/cyoda/cyoda`. A binary installed by any route below runs with the in-memory backend until it is given a configuration: `cyoda init` writes a user config that selects sqlite (see `cyoda help cli init`), and the `.deb`/`.rpm` packages ship a system config that does.\n\nTo run cyoda on Kubernetes, use the Helm chart instead (`cyoda help helm`); it runs the container image.\n\n## ROUTES\n\n**Homebrew (macOS, Linux):**\n\n```\nbrew install cyoda/cyoda-go/cyoda\ncyoda init\n```\n\n**Install script (Linux, macOS):**\n\n```\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | sh\n```\n\nA pinned release, with the signature check required:\n\n```\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | CYODA_VERSION=v0.9.0 CYODA_COSIGN_VERIFY=required sh\n```\n\nFrom v0.9.0 the release's signed `SHA256SUMS` lists `install.sh` too: to check the script before you run it, download it with `SHA256SUMS` and verify both as for the packages below.\n\nThe script downloads the archive for the host's OS and architecture, checks it against `SHA256SUMS`, installs `cyoda` to `~/.local/bin`, and runs `cyoda init`. When `cosign` is on `PATH`, it also verifies the signatures of the archive and of `SHA256SUMS`. The settings are environment variables of `sh`, so they go after the pipe, as above; a variable set before `curl` reaches `curl` only:\n\n- `CYODA_VERSION` — the release tag to install, for example `v0.9.0`; default the latest release.\n- `CYODA_INSTALL_DIR` — the directory to install into; default `~/.local/bin`.\n- `CYODA_COSIGN_VERIFY=required` — stop if `cosign` is not on `PATH`, instead of checking `SHA256SUMS` only.\n\nWithout `CYODA_COSIGN_VERIFY=required`, a release that has no signature file is checked against `SHA256SUMS` only. For a production host, set `CYODA_COSIGN_VERIFY=required`. `CYODA_COSIGN_VERIFY` takes `auto` (the default: verify when `cosign` is on `PATH`), `required`, or `false` (also `0` or `no`: skip the signature check); any other value stops the script. Releases before v0.7.0 are not signed; v0.7.0 and v0.7.1 were signed under the GitHub organization's earlier name and do not verify, so with `cosign` on `PATH` the script refuses them.\n\n**Debian, Ubuntu (`.deb`) and Fedora, RHEL (`.rpm`):**\n\nSet `V` to the release you install (the release page lists them). Download the package and the release's `SHA256SUMS` with its signature. Check with `cosign` that the release workflow signed `SHA256SUMS` from that release's tag, as the install script does, then check the package against it:\n\n```\nV=v0.9.0\nR=https://github.com/cyoda/cyoda-go/releases/download/$V\ncurl -fsSLO \"$R/cyoda_linux_amd64.deb\"\ncurl -fsSLO \"$R/SHA256SUMS\" -O \"$R/SHA256SUMS.sig\" -O \"$R/SHA256SUMS.pem\"\ncosign verify-blob --certificate SHA256SUMS.pem --signature SHA256SUMS.sig \\\n  --certificate-identity \"https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/$V\" \\\n  --certificate-oidc-issuer https://token.actions.githubusercontent.com \\\n  --certificate-github-workflow-trigger push \\\n  --certificate-github-workflow-ref \"refs/tags/$V\" \\\n  SHA256SUMS \\\n  && sha256sum --ignore-missing -c SHA256SUMS \\\n  && sudo dpkg -i cyoda_linux_amd64.deb\n```\n\nFor Fedora or RHEL, download `cyoda_linux_amd64.rpm` instead and end with `sudo rpm -i cyoda_linux_amd64.rpm`. Each step runs only when the one before it succeeded. Pinning the tag matters: a signature of another release does not verify this one, so an older signed package cannot be passed off as the one you asked for. The owner is spelt `Cyoda`, as in the certificate. Use `arm64` in place of `amd64` on ARM hosts. The package installs `/usr/bin/cyoda` and the system config `/etc/cyoda/cyoda.env`, which selects sqlite. An upgrade keeps a changed `/etc/cyoda/cyoda.env`.\n\n**Container image:** `ghcr.io/cyoda/cyoda`. Each release is tagged with its version without the `v` (for example `0.9.0`); `latest` is the newest release that is not a pre-release. The release workflow signs the image. A tag can be moved, so check the signature for the release you want and run the image by the digest that check printed (this needs `jq`):\n\n```\nV=0.9.0\nOUT=$(cosign verify \"ghcr.io/cyoda/cyoda:$V\" \\\n  --certificate-identity \"https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/v$V\" \\\n  --certificate-oidc-issuer https://token.actions.githubusercontent.com \\\n  --certificate-github-workflow-trigger push \\\n  --certificate-github-workflow-ref \"refs/tags/v$V\") \\\n  && D=$(printf '%s' \"$OUT\" | jq -r '.[0].critical.image.\"docker-manifest-digest\"') \\\n  && docker pull \"ghcr.io/cyoda/cyoda@$D\" \\\n  && echo \"run ghcr.io/cyoda/cyoda@$D\"\n```\n\nFor running the image, see `cyoda help run` (Docker, Docker Compose).\n\n**Windows:** download the `windows` `.zip` archive for your architecture (`cyoda_<version>_windows_amd64.zip`) from the release page, with `SHA256SUMS`, `SHA256SUMS.sig` and `SHA256SUMS.pem`. Check `SHA256SUMS` with `cosign` (one line, any shell; put your release in both places): `cosign verify-blob --certificate SHA256SUMS.pem --signature SHA256SUMS.sig --certificate-identity https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/v0.9.0 --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-github-workflow-trigger push --certificate-github-workflow-ref refs/tags/v0.9.0 SHA256SUMS`. Then compare the archive's hash (`certutil -hashfile <archive> SHA256`) with its line in `SHA256SUMS`. Use the archive only when both match; then put `cyoda.exe` on `PATH`.\n\n**From source** (needs the Go version in `go.mod`):\n\n```\ngo install github.com/cyoda/cyoda-go/cmd/cyoda@latest\n```\n\n## UPGRADE\n\nInstall the newer release by the same route:\n\n- Homebrew: `brew upgrade cyoda`.\n- Install script: run it again; with `CYODA_VERSION` it installs that release.\n- `.deb`/`.rpm`: verify the newer package as above, then install it (`sudo dpkg -i …`, `sudo rpm -U …`).\n- Container image: verify the newer release's image and pull it by digest, as above, then restart the container with that digest.\n- From source: `go install github.com/cyoda/cyoda-go/cmd/cyoda@latest` again. Use this path even if you installed from the earlier `github.com/cyoda-platform/cyoda-go` path: that path gets no new releases.\n\nRead the release notes before an upgrade. A storage backend's schema migrates when the new binary starts (sqlite and postgres auto-migrate by default; see `cyoda help cli migrate`).\n\n## SEE ALSO\n\n- quickstart\n- cli.init\n- run\n- helm\n",
  "sections": [
    {
      "name": "NAME",
      "body": "install — ways to install the `cyoda` binary, and how to upgrade it."
    },
    {
      "name": "SYNOPSIS",
      "body": "```\nbrew install cyoda/cyoda-go/cyoda\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | sh\ngo install github.com/cyoda/cyoda-go/cmd/cyoda@latest\n```"
    },
    {
      "name": "DESCRIPTION",
      "body": "cyoda is one binary. Every release on `https://github.com/cyoda/cyoda-go/releases` has archives for Linux and macOS (`amd64`, `arm64`) and Windows (`.zip`), `.deb` and `.rpm` packages for Linux, a `SHA256SUMS` file, and keyless Sigstore (`cosign`) signatures for the archives and `SHA256SUMS`. The container image is `ghcr.io/cyoda/cyoda`. A binary installed by any route below runs with the in-memory backend until it is given a configuration: `cyoda init` writes a user config that selects sqlite (see `cyoda help cli init`), and the `.deb`/`.rpm` packages ship a system config that does.\n\nTo run cyoda on Kubernetes, use the Helm chart instead (`cyoda help helm`); it runs the container image."
    },
    {
      "name": "ROUTES",
      "body": "**Homebrew (macOS, Linux):**\n\n```\nbrew install cyoda/cyoda-go/cyoda\ncyoda init\n```\n\n**Install script (Linux, macOS):**\n\n```\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | sh\n```\n\nA pinned release, with the signature check required:\n\n```\ncurl -fsSL https://github.com/cyoda/cyoda-go/releases/latest/download/install.sh | CYODA_VERSION=v0.9.0 CYODA_COSIGN_VERIFY=required sh\n```\n\nFrom v0.9.0 the release's signed `SHA256SUMS` lists `install.sh` too: to check the script before you run it, download it with `SHA256SUMS` and verify both as for the packages below.\n\nThe script downloads the archive for the host's OS and architecture, checks it against `SHA256SUMS`, installs `cyoda` to `~/.local/bin`, and runs `cyoda init`. When `cosign` is on `PATH`, it also verifies the signatures of the archive and of `SHA256SUMS`. The settings are environment variables of `sh`, so they go after the pipe, as above; a variable set before `curl` reaches `curl` only:\n\n- `CYODA_VERSION` — the release tag to install, for example `v0.9.0`; default the latest release.\n- `CYODA_INSTALL_DIR` — the directory to install into; default `~/.local/bin`.\n- `CYODA_COSIGN_VERIFY=required` — stop if `cosign` is not on `PATH`, instead of checking `SHA256SUMS` only.\n\nWithout `CYODA_COSIGN_VERIFY=required`, a release that has no signature file is checked against `SHA256SUMS` only. For a production host, set `CYODA_COSIGN_VERIFY=required`. `CYODA_COSIGN_VERIFY` takes `auto` (the default: verify when `cosign` is on `PATH`), `required`, or `false` (also `0` or `no`: skip the signature check); any other value stops the script. Releases before v0.7.0 are not signed; v0.7.0 and v0.7.1 were signed under the GitHub organization's earlier name and do not verify, so with `cosign` on `PATH` the script refuses them.\n\n**Debian, Ubuntu (`.deb`) and Fedora, RHEL (`.rpm`):**\n\nSet `V` to the release you install (the release page lists them). Download the package and the release's `SHA256SUMS` with its signature. Check with `cosign` that the release workflow signed `SHA256SUMS` from that release's tag, as the install script does, then check the package against it:\n\n```\nV=v0.9.0\nR=https://github.com/cyoda/cyoda-go/releases/download/$V\ncurl -fsSLO \"$R/cyoda_linux_amd64.deb\"\ncurl -fsSLO \"$R/SHA256SUMS\" -O \"$R/SHA256SUMS.sig\" -O \"$R/SHA256SUMS.pem\"\ncosign verify-blob --certificate SHA256SUMS.pem --signature SHA256SUMS.sig \\\n  --certificate-identity \"https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/$V\" \\\n  --certificate-oidc-issuer https://token.actions.githubusercontent.com \\\n  --certificate-github-workflow-trigger push \\\n  --certificate-github-workflow-ref \"refs/tags/$V\" \\\n  SHA256SUMS \\\n  && sha256sum --ignore-missing -c SHA256SUMS \\\n  && sudo dpkg -i cyoda_linux_amd64.deb\n```\n\nFor Fedora or RHEL, download `cyoda_linux_amd64.rpm` instead and end with `sudo rpm -i cyoda_linux_amd64.rpm`. Each step runs only when the one before it succeeded. Pinning the tag matters: a signature of another release does not verify this one, so an older signed package cannot be passed off as the one you asked for. The owner is spelt `Cyoda`, as in the certificate. Use `arm64` in place of `amd64` on ARM hosts. The package installs `/usr/bin/cyoda` and the system config `/etc/cyoda/cyoda.env`, which selects sqlite. An upgrade keeps a changed `/etc/cyoda/cyoda.env`.\n\n**Container image:** `ghcr.io/cyoda/cyoda`. Each release is tagged with its version without the `v` (for example `0.9.0`); `latest` is the newest release that is not a pre-release. The release workflow signs the image. A tag can be moved, so check the signature for the release you want and run the image by the digest that check printed (this needs `jq`):\n\n```\nV=0.9.0\nOUT=$(cosign verify \"ghcr.io/cyoda/cyoda:$V\" \\\n  --certificate-identity \"https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/v$V\" \\\n  --certificate-oidc-issuer https://token.actions.githubusercontent.com \\\n  --certificate-github-workflow-trigger push \\\n  --certificate-github-workflow-ref \"refs/tags/v$V\") \\\n  && D=$(printf '%s' \"$OUT\" | jq -r '.[0].critical.image.\"docker-manifest-digest\"') \\\n  && docker pull \"ghcr.io/cyoda/cyoda@$D\" \\\n  && echo \"run ghcr.io/cyoda/cyoda@$D\"\n```\n\nFor running the image, see `cyoda help run` (Docker, Docker Compose).\n\n**Windows:** download the `windows` `.zip` archive for your architecture (`cyoda_<version>_windows_amd64.zip`) from the release page, with `SHA256SUMS`, `SHA256SUMS.sig` and `SHA256SUMS.pem`. Check `SHA256SUMS` with `cosign` (one line, any shell; put your release in both places): `cosign verify-blob --certificate SHA256SUMS.pem --signature SHA256SUMS.sig --certificate-identity https://github.com/Cyoda/cyoda-go/.github/workflows/release.yml@refs/tags/v0.9.0 --certificate-oidc-issuer https://token.actions.githubusercontent.com --certificate-github-workflow-trigger push --certificate-github-workflow-ref refs/tags/v0.9.0 SHA256SUMS`. Then compare the archive's hash (`certutil -hashfile <archive> SHA256`) with its line in `SHA256SUMS`. Use the archive only when both match; then put `cyoda.exe` on `PATH`.\n\n**From source** (needs the Go version in `go.mod`):\n\n```\ngo install github.com/cyoda/cyoda-go/cmd/cyoda@latest\n```"
    },
    {
      "name": "UPGRADE",
      "body": "Install the newer release by the same route:\n\n- Homebrew: `brew upgrade cyoda`.\n- Install script: run it again; with `CYODA_VERSION` it installs that release.\n- `.deb`/`.rpm`: verify the newer package as above, then install it (`sudo dpkg -i …`, `sudo rpm -U …`).\n- Container image: verify the newer release's image and pull it by digest, as above, then restart the container with that digest.\n- From source: `go install github.com/cyoda/cyoda-go/cmd/cyoda@latest` again. Use this path even if you installed from the earlier `github.com/cyoda-platform/cyoda-go` path: that path gets no new releases.\n\nRead the release notes before an upgrade. A storage backend's schema migrates when the new binary starts (sqlite and postgres auto-migrate by default; see `cyoda help cli migrate`)."
    },
    {
      "name": "SEE ALSO",
      "body": "- quickstart\n- cli.init\n- run\n- helm"
    }
  ],
  "see_also": [
    "quickstart",
    "cli.init",
    "run",
    "helm"
  ],
  "stability": "stable",
  "actions": []
}
