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.
Prerequisites
Section titled “Prerequisites”- Linux or macOS: a terminal,
tar, and eithercurlorwget. - Windows: PowerShell 5.1 or later.
The default destination is ~/.local/bin on Linux and macOS, or
%LOCALAPPDATA%\Ptah\bin on Windows.
1. Run the installer
Section titled “1. Run the installer”curl -fsSL https://ptah.run/install.sh | shUse wget -qO- https://ptah.run/install.sh | sh when curl is
not installed.
irm https://ptah.run/install.ps1 | iexExpected output includes these stable results; the version, platform, archive, and destination vary by machine:
ptah: sha256 verified against checksums.txtptah: 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.
2. Put the install directory on PATH
Section titled “2. Put the install directory on PATH”On Linux and macOS, the installer prints this only when the destination is not
already on PATH:
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.
3. Verify all three binaries
Section titled “3. Verify all three binaries”ptah versionptah-compat versionptah-ls --versionEach 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:
ptahprovides the native Ptah workflow;ptah-compatprovides Atlas-compatible command paths;ptah-lsprovides editor support for Go annotations.
If verification fails
Section titled “If verification fails”ptah: command not found
Section titled “ptah: command not found”Add the install directory to the running shell as shown above, then run
ptah version again. The binaries may already be installed correctly.
The installer reports a checksum mismatch
Section titled “The installer reports a checksum mismatch”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.
A documented command is missing
Section titled “A documented command is missing”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.
Next step
Section titled “Next step”Run the quick start to apply and verify a schema change against a disposable SQLite database.