Skip to content
PtahPtah

Install Ptah

The release installer downloads the archive for your operating system and architecture, verifies its SHA-256 checksum, and installs ptah, ptah-compat, and ptah-ls without administrator rights.

Use other installation methods for Homebrew, a pinned or customized installer, manual archive verification, go install, or a source checkout.

  • Linux or macOS: a terminal, tar, and either curl or wget.
  • Windows: PowerShell 5.1 or later.

The default destination is ~/.local/bin on Linux and macOS, or %LOCALAPPDATA%\Ptah\bin on Windows.

Terminal window
curl -fsSL https://ptah.run/install.sh | sh

Use wget -qO- https://ptah.run/install.sh | sh when curl is not installed.

Expected output includes these stable results; the version, platform, archive, and destination vary by machine:

ptah: sha256 verified against checksums.txt
ptah: installed ptah, ptah-compat, ptah-ls in <install directory>
Version: <installed version>

The Version: line comes from the installed binary. The script runs it before reporting success, so an archive that cannot execute on the current machine is not left as an apparently successful install.

On Linux and macOS, the installer prints this only when the destination is not already on PATH:

Terminal window
export PATH="$HOME/.local/bin:$PATH"

Run it for the current terminal and add it to your shell startup file to keep it. On Windows, the installer updates the user Path unless you disable that behavior.

Terminal window
ptah version
ptah-compat version
ptah-ls --version

Each command prints a version, commit, build date, Go toolchain, and platform. ptah-compat uses a version command rather than a --version flag.

The native and compatibility command trees are intentionally separate:

  • ptah provides the native Ptah workflow;
  • ptah-compat provides Atlas-compatible command paths;
  • ptah-ls provides editor support for Go annotations.

Add the install directory to the running shell as shown above, then run ptah version again. The binaries may already be installed correctly.

Do not run the downloaded binary. Retry once to rule out an incomplete transfer. If the mismatch repeats, use the signature-verification path on Other installation methods before trusting the archive or checksum file.

The documentation version may be newer than the installed release. Use the version selector in the header for released documentation, compare the binary’s --help, or install a newer release.

More symptoms are on Troubleshooting.

Run the quick start to apply and verify a schema change against a disposable SQLite database.