Advanced installation

Installation covers the usual way on each system: Homebrew, Scoop or the install script. This guide covers the rest.

Install script settings

The install script reads these environment variables. With curl | sh, put them before sh:

curl -fsSL https://pocketone.dev/install.sh | POCKETONE_VERSION=<release tag> sh
Variable What it does
POCKETONE_VERSION Install this release tag instead of the newest one.
POCKETONE_INSTALL_DIR Where the binary goes when no package is used. Default /usr/local/bin; a folder you own, such as $HOME/.local/bin, needs no sudo.
POCKETONE_NO_PACKAGE=1 On Linux, install the plain binary, never a package.

Windows without Scoop

Releases include 64-bit Windows builds: the zip ending in _windows_amd64.zip for most PCs, _windows_arm64.zip for ARM ones. The executable inside is pocketone.exe. Download one from Releases, then in PowerShell, from the folder you downloaded it to:

$dir = "$env:LOCALAPPDATA\Programs\pocketone"
Expand-Archive pocketone_*_windows_amd64.zip -DestinationPath $dir -Force
Unblock-File "$dir\pocketone.exe"
[Environment]::SetEnvironmentVariable("Path", [Environment]::GetEnvironmentVariable("Path", "User") + ";$dir", "User")

This puts PocketOne in a folder of your own, so it needs no administrator rights, and adds that folder to your user PATH. Open a new terminal and check it with pocketone --version.

Unblock-File clears the "downloaded from the internet" mark. The executable isn't code-signed, so if you start it from File Explorer instead, SmartScreen may stop it: choose More info, then Run anyway. pocketone commands are the same in PowerShell and in Command Prompt.

Download a release

Download the zip for your platform from Releases, unzip it, and put pocketone somewhere on your PATH. Each release's checksums.txt lists the SHA-256 of every file.

PocketOne's Linux builds are static binaries for amd64, arm64, armv7 (32-bit ARM, such as older Raspberry Pis), ppc64le and s390x, so they run on any distribution. Releases also have .deb, .rpm and .apk packages (install one by hand).

Build from source

With Go installed:

git clone https://github.com/pocketonehq/pocketone.git
cd pocketone/examples/pocketone
go build -o pocketone .

Upgrade

A binary from a release zip or go build, or the plain binary the install script put in /usr/local/bin, upgrades itself with pocketone upgrade (with sudo if its folder is root's). It keeps the old one beside it as pocketone-<version>, never deleted, so you can go back.