32029cf58f
Resolved docs/install.md, internal/cli/app.go, internal/statusview and scripts/setup-native.py: no ntfy anywhere (connection, status, installer constants, troubleshooting ports), keeping the first-run next steps, the unreachable-server and tool/Docker install hints. README drops the C compiler (ntfy was its only user). The installer summary's password wording is now per run (a reinstall in the same process no longer says "you just chose"), and its test checks the URLs then the next steps. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
478 lines
24 KiB
Markdown
478 lines
24 KiB
Markdown
# Installation
|
|
|
|
`./install` installs Pipelines natively for your user on macOS or Linux. It
|
|
builds the server, the CLI and the web app together, installs them under
|
|
`~/.local/share/pipelines`, and starts them under a login service. No sudo.
|
|
|
|
```sh
|
|
git clone https://git.a-wan.net/alan/pipelines.git
|
|
cd pipelines
|
|
./install
|
|
```
|
|
|
|
## Prerequisites
|
|
|
|
The installer only detects tools. It never installs, upgrades or downloads
|
|
them, and it stops naming whatever is missing.
|
|
|
|
| Tool | Why |
|
|
| --- | --- |
|
|
| Go (version in `go.mod`, currently 1.27) | builds `pipelines-server` and `pipelines` |
|
|
| Node.js 18+ | runs the authenticated web proxy (`web/serve.mjs`) |
|
|
| Python 3.9+ | installer and the lifecycle manager (`manage.py`) |
|
|
| git, curl | source checkout, updates, release lookup |
|
|
| **Docker, running** | builds the Flutter web app and the APK |
|
|
| OpenCode on `PATH` | required; default stage and chat harness (`curl -fsSL https://opencode.ai/install \| bash`) |
|
|
| Pi, Claude Code, Codex | optional; set up after install with `pipelines harness setup <name>` |
|
|
| tailscale | optional; tailnet HTTPS access |
|
|
|
|
The install is **all or nothing**: the web app and the server are built before
|
|
either is installed. If Docker is missing or not running, `./install` stops
|
|
("Docker is required to build the web app but was not found on PATH" or
|
|
"Docker is installed but not running") and leaves any existing installation
|
|
running unchanged. A missing tool is named with where to get it.
|
|
|
|
Run as your normal logged-in user. macOS needs `launchctl` in a GUI login;
|
|
Linux needs `systemctl --user`. Other platforms are refused.
|
|
|
|
## What `./install` does
|
|
|
|
1. Checks tools, port settings, the login service manager and the OpenCode
|
|
executable.
|
|
2. Builds the Flutter web app in Docker (pinned to `app/.flutter-version`).
|
|
Builds are cached in `~/.cache/pipelines/app-builds` by a digest of the app
|
|
sources, so an unchanged app is reused.
|
|
3. Builds `pipelines-server`, `pipelines`, `pipelines-claude-host` and
|
|
`pipelines-codex-host` (retain Claude processes and Codex interaction callbacks
|
|
across server restarts) with `go build -trimpath`.
|
|
4. Installs into the prefix: binaries in `bin/`, web app in `lib/app-web`, web
|
|
proxy in `lib/web`, `lib/manage.py`, and an empty `lib/app-updates` for APKs.
|
|
5. Runs `pipelines skill install` (the authoring skill for OpenCode and Claude
|
|
Code skill roots).
|
|
6. Writes host harness profiles to `~/.config/pipelines/harnesses.json`. If no
|
|
usable OpenCode default model is found, it opens the model picker in the
|
|
terminal (or fails without a terminal; pass `--model`).
|
|
7. Migrates data from an earlier Docker installation, if its volumes exist.
|
|
8. Retires the ntfy server an older installation ran, if any (see
|
|
[Reinstalling over an ntfy installation](#reinstalling-over-an-ntfy-installation)).
|
|
9. Registers the login service, writes the manifest
|
|
`<prefix>/pipelines-install.json`, saves `ws://127.0.0.1:<port>/connect` as
|
|
the CLI default in `~/.config/pipelines/client.json`, and starts everything
|
|
that is not already running. A running service keeps the previous build
|
|
until `pipelines restart`.
|
|
10. Retires the legacy standalone web agent `net.awan.pipelines.web` on macOS
|
|
(stopped, plist renamed to `.disabled`), so only one web app is served.
|
|
11. If `PIPELINES_WEB_PUBLIC_URL` is an `https://…ts.net` address, runs
|
|
`tailscale serve --bg --https=<port> http://127.0.0.1:<web-port>`.
|
|
12. Prints the browser URLs and the next steps (below).
|
|
|
|
## First steps after installing
|
|
|
|
1. Open the printed address (by default `http://localhost:8082/`) and sign in
|
|
with the web password you chose during the install.
|
|
2. OpenCode is already the default harness. Add the others you use with
|
|
`pipelines harness setup claude|codex|opencode|pi`.
|
|
3. Start a chat, or run one of the example pipelines a new database starts
|
|
with. From a terminal: `pipelines list`, then
|
|
`pipelines run <pipeline> "<task>"` in the repository to work on.
|
|
|
|
Empty lists are normal on a new installation: `pipelines runs` says
|
|
"No runs yet" with the command to start one. If the CLI cannot reach the
|
|
server it says so and how to start it (`pipelines start`, `pipelines doctor`).
|
|
|
|
## Notifications
|
|
|
|
Pipelines sends notifications through its own server to the Pipelines apps;
|
|
there is nothing to install or subscribe to:
|
|
|
|
- **Web app**: browser notifications, once allowed in the browser.
|
|
- **Android**: the **Receive notifications in Pipelines** background service,
|
|
or in the app while it is open.
|
|
- **iOS and macOS**: in the app.
|
|
|
|
See [Notifications](notifications.md).
|
|
|
|
### Reinstalling over an ntfy installation
|
|
|
|
Installations from before this change ran an ntfy server beside Pipelines.
|
|
`./install` retires it, once, after the new build is in place and before the
|
|
new manifest is written (`Setup.retire_ntfy` in `scripts/setup-native.py`,
|
|
using `retire_ntfy` in `scripts/manage.py`):
|
|
|
|
1. It records the paths it removes and the old ntfy version, from the old
|
|
manifest, in `<prefix>/logs/install.log`. No credentials are written there.
|
|
2. It stops the old ntfy process from `<prefix>/ntfy.pid`, but only while that
|
|
PID's command line is still `<prefix>/bin/ntfy serve …`; any other PID is
|
|
left alone and the stale PID file is removed.
|
|
3. It deletes `<prefix>/bin/ntfy`, `<prefix>/ntfy.pid`, `<prefix>/logs/ntfy.log`,
|
|
`<prefix>/secrets/publisher-token` and the whole `<prefix>/data/ntfy/`
|
|
directory.
|
|
|
|
`<prefix>/data/ntfy/` is deleted rather than kept: it held only ntfy's
|
|
configuration, its message and attachment caches, and its account database
|
|
(`phone-reader`, `pipeline-publisher`), which nothing reads any more. Pipelines
|
|
history lives in `<prefix>/data/pipelines.db` and is untouched.
|
|
|
|
The new manifest has a top-level `"mode": "native"` and no `ntfy`, `ntfy_port`,
|
|
`topic`, `username` or `public_url` entries. Until that reinstall, a manifest
|
|
with the older `ntfy.mode: "native"` marker is still treated as native.
|
|
|
|
`./install` does not restart a service that is already running, so the old
|
|
server keeps running (without ntfy) until `pipelines restart`. The restart stops
|
|
the old supervisor; the new one starts only the server and web proxy, and stops
|
|
an ntfy that is somehow still running from the PID file under the same check.
|
|
Running `./install` again finds nothing left to retire. On a phone, remove the
|
|
old Pipelines subscription from the ntfy app.
|
|
|
|
Docker installations (`./install --docker`) retire ntfy the same way: the
|
|
installer removes the old `ntfy` container and its `<project>_ntfy-data` volume,
|
|
`secrets/ntfy-token.txt` and the `NTFY_*` lines in `.env`, and recreates the
|
|
server with `--remove-orphans`.
|
|
|
|
## Set up harnesses
|
|
|
|
One command per harness, the same on native and Docker installations:
|
|
|
|
```sh
|
|
pipelines harness setup opencode # stages + chat (required; ./install already configured it)
|
|
pipelines harness setup pi # stages
|
|
pipelines harness setup claude # chat
|
|
pipelines harness setup codex # chat
|
|
pipelines harness list # status of all four
|
|
```
|
|
|
|
Each run checks the CLI is installed where the server finds it (printing the
|
|
install command if not), signs in with the harness's own login when needed,
|
|
picks OpenCode/Pi default models, and verifies with the server's check. No
|
|
restart is needed. See [Harnesses](harnesses.md#set-up-harnesses).
|
|
|
|
It also warns when a different `pipelines` earlier on `PATH` shadows the new
|
|
one; it does not touch that binary.
|
|
|
|
### Addresses
|
|
|
|
| Service | Default | Flag |
|
|
| --- | --- | --- |
|
|
| Web proxy (sign-in, web app, `/updates/`) | port 8082, loopback + tailnet only | `--web-port`, `--web-host`, `--web-lan` |
|
|
| Server API (no auth) | `127.0.0.1:8080` | `--port`, `--bind-address` |
|
|
|
|
Expose only the web proxy. It listens on loopback and this machine's Tailscale
|
|
addresses unless you opt into the LAN; see
|
|
[network defaults](notes/network-and-update-signing.md). A reinstall keeps the saved ports and bind
|
|
addresses unless you pass the flag again, so an installation set up with
|
|
`--web-port 8083` stays on 8083.
|
|
|
|
The server advertises itself on the LAN with mDNS/DNS-SD as `_pipelines._tcp`,
|
|
so the phone app's "Find servers on this network" lists it. The advertised port
|
|
is the web proxy's (when it listens beyond loopback; the supervisor passes
|
|
`-mdns-port`), or the server's own `-addr` port when that is a LAN address.
|
|
TXT records: `v` (version), `name` (host), `path=/connect`, `tls=0`,
|
|
`auth=password|none`, plus `ts=`/`public=` routes; without `--web-lan` the
|
|
advert carries no LAN route (`lan=0`, address records are the tailnet IPs). Set `PIPELINES_MDNS=off` (or `-mdns=false`) to disable
|
|
it; a failure to advertise is logged and never stops the server.
|
|
|
|
`PIPELINES_WEB_PUBLIC_URL` is the address phones and notification links use.
|
|
Set it once; reinstalls keep it:
|
|
|
|
```sh
|
|
PIPELINES_WEB_PUBLIC_URL=https://mymac.tailnet-name.ts.net ./install
|
|
```
|
|
|
|
Without it the installer records the tailnet IP (or `127.0.0.1`), or
|
|
`http://<LAN IP>:<web-port>` where LAN sign-in is allowed. Use HTTPS or a
|
|
VPN for remote access; plain HTTP does not protect the password.
|
|
|
|
## Flags
|
|
|
|
From `arguments()` in `scripts/setup-native.py`:
|
|
|
|
| Flag | Effect |
|
|
| --- | --- |
|
|
| `--prefix PATH` | install location (default `~/.local/share/pipelines`, or `PIPELINES_PREFIX`) |
|
|
| `--port N` | server API port (default 8080) |
|
|
| `--bind-address IP` | server API bind (default `127.0.0.1`) |
|
|
| `--web-port N` | web proxy port (default 8082) |
|
|
| `--web-host tailnet\|IP` | web proxy access: `tailnet` (default for new installs: loopback and Tailscale addresses only) or a literal IPv4 bind such as `0.0.0.0`; existing installs keep theirs and get a warning |
|
|
| `--web-lan` | also accept plain-HTTP LAN connections; sign-in over them stays refused |
|
|
| `--web-lan-plain-login` | allow sign-in over plain-HTTP LAN (unencrypted password and cookie; trusted networks only) |
|
|
| `--timezone TZ` | override the detected timezone (fallback UTC) |
|
|
| `--model PROVIDER/MODEL` | default model for new starters and missing OpenCode profile fields |
|
|
| `--allow-authoring` | allow creating and publishing pipelines (fresh installs default to this) |
|
|
| `--no-authoring` | execution-only server |
|
|
| `--fresh` | start empty even if earlier Docker volumes exist |
|
|
| `--replace-data` | let Docker migration overwrite existing native data |
|
|
|
|
Reinstalls keep the recorded authoring role unless you pass one of the two
|
|
role flags.
|
|
|
|
## Full reset and fresh installation
|
|
|
|
From the checkout, run:
|
|
|
|
```sh
|
|
./uninstall
|
|
./install
|
|
```
|
|
|
|
`./uninstall` is a full reset, including incomplete installations: it stops
|
|
Pipelines and its retained chat hosts, removes its database/history, password,
|
|
configuration, managed skills, client build outputs, Docker resources and build
|
|
caches. It keeps the source checkout and separate AI-provider credentials.
|
|
The next install asks for a new password. Docker must be running to remove its
|
|
Pipelines resources; unrelated containers, images and volumes are preserved.
|
|
Custom installation prefixes can be selected with `./uninstall --prefix PATH`.
|
|
This reset has no confirmation prompt. Do not use it merely to update the app.
|
|
|
|
## Other install modes
|
|
|
|
```sh
|
|
./install --web # rebuild and install only the web app (Docker), then reload the page
|
|
./install --apk # build the Android APK (Docker, slower) and offer it to phones
|
|
./install --docker # server in Docker Compose instead of native
|
|
```
|
|
|
|
`./install --apk` builds a release APK for this installation's web address,
|
|
copies it to `<prefix>/lib/app-updates/pipelines.apk` with a `version.json`,
|
|
and serves it at `<web>/updates/` behind the sign-in. On the phone:
|
|
**Settings → App updates → Check for updates**, then **Download and install**.
|
|
The first install can use `<web>/updates/pipelines.apk` directly. Every APK is
|
|
signed with the key in `~/.config/pipelines/android/` (seeded from
|
|
`~/.android/debug.keystore` if present), so each build installs over the last.
|
|
Options: `--server-url ws(s)://host:port/connect`, `--notes TEXT`, `--prefix`.
|
|
|
|
### Desktop clients
|
|
|
|
```sh
|
|
./install --linux --output ./dist
|
|
./install --linux --install # also install it for this user (launcher, icon)
|
|
./install --macos --flutter /path/to/flutter --output ./dist
|
|
# Offer this desktop build through an installed server's update feed:
|
|
./install --linux --publish --notes "Release notes"
|
|
./install --macos --flutter /path/to/flutter --publish
|
|
```
|
|
|
|
Linux builds use Docker on Linux or macOS and target **Linux x64**. Extract the
|
|
entire `pipelines-linux-x64.tar.gz` archive and run `pipelines-linux-x64/pipelines-app`;
|
|
keep its `lib/` and `data/` siblings together. The executable has a distinct name
|
|
from the `pipelines` server CLI. The target Linux desktop needs GTK 3 and its
|
|
runtime libraries (Debian/Ubuntu: `libgtk-3-0`, `libstdc++6`, `liblzma5`). This is a
|
|
portable bundle, not a package-manager installation or a server installation.
|
|
|
|
`./install --linux --install` also installs it for the current user:
|
|
the bundle goes to `<prefix>/lib/app-linux` (default
|
|
`~/.local/share/pipelines/lib/app-linux`; the previous one is kept as
|
|
`app-linux.previous`), with `~/.local/share/applications/com.pipelines.app.desktop`,
|
|
its icon in `~/.local/share/icons/hicolor` and a `~/.local/bin/pipelines-app`
|
|
link. `scripts/install-linux-app.sh <archive>` installs a downloaded archive the
|
|
same way. The desktop entry is named after the GTK application id, which is
|
|
also the Wayland app id (Hyprland's window class), so launchers, docks and
|
|
window rules match the window. The app runs as a native Wayland client (GTK
|
|
picks Wayland when `WAYLAND_DISPLAY` is set and `GDK_BACKEND` is not forced to
|
|
`x11`); it draws a GTK header bar only on GNOME.
|
|
|
|
Release builds are size-optimised: Dart debug symbols are split out
|
|
(`--split-debug-info`, kept in the build cache under `.debug-info/` for
|
|
`flutter symbolize`) and the icon fonts are tree-shaken (the build image fixes
|
|
Flutter 3.44's Linux backend, which otherwise ships the full MaterialIcons
|
|
font). The Linux app has no web view or file share sheet, so HTML artifacts
|
|
show an explanation instead of a preview and Share is not offered (Download is).
|
|
|
|
macOS 12 or newer is required. macOS builds run natively with Xcode and the pinned Flutter version from
|
|
`app/.flutter-version`; they do not require Docker. The build targets the build
|
|
machine's architecture and records the actual executable architecture in the
|
|
feed. Unzip `Pipelines-macos.zip` and open `Pipelines.app`; move it to Applications
|
|
if desired. Local builds are not Developer ID notarized distribution packages.
|
|
Framework symlinks and executable permissions are preserved in the archive.
|
|
|
|
Both commands build in isolated source copies/containers, retain cached releases,
|
|
and do not install, launch or restart the server. `--server-url` optionally sets
|
|
the first server address; otherwise choose it in the app. `--output` copies the
|
|
archive to a chosen directory. `--publish` additionally requires an existing
|
|
installation (`--prefix` supported), copies a versioned archive into its update
|
|
directory, then atomically updates `/updates/linux-x64/version.json` or
|
|
`/updates/macos/version.json`. Feeds include platform, actual architectures,
|
|
version, SHA-256, and release notes. Android's existing feed remains separate.
|
|
Previously published archives remain available for downloads already in progress.
|
|
|
|
`./install --docker` is the optional Compose installation with its own
|
|
container harness credentials; see [Docker](docker.md). Do not run it
|
|
alongside a native install on the same ports. Its harnesses are set up with
|
|
the same `pipelines harness setup opencode|pi` (run from the checkout), which
|
|
configures them inside the container. The old `./install --opencode` and
|
|
`./install --pi` only print that command and exit.
|
|
|
|
## Lifecycle commands
|
|
|
|
Put the installed CLI on `PATH`:
|
|
|
|
```sh
|
|
export PATH="$HOME/.local/share/pipelines/bin:$PATH"
|
|
```
|
|
|
|
The installed `pipelines` finds its own manifest. `PIPELINES_PREFIX` selects
|
|
another installation.
|
|
|
|
| Command | Effect |
|
|
| --- | --- |
|
|
| `pipelines start` | start server and web proxy; print the startup report |
|
|
| `pipelines stop` | stop both; harness sessions keep running and the next start reattaches them (see below) |
|
|
| `pipelines restart` | stop then start, keeping data; chat turns and stage sessions continue |
|
|
| `pipelines doctor` | startup report, server health, OpenCode API check (no inference) |
|
|
| `pipelines status` | server and host health, from the running server |
|
|
| `pipelines logs` | follow `logs/server.log` |
|
|
| `pipelines update` | pull and reinstall the same way, then restart (see below) |
|
|
| `pipelines uninstall [--purge] [--yes]` | remove the service and binaries; `--purge` also deletes data |
|
|
| `pipelines service enable [--print]` | enable and start login autostart (`--print` previews the definition) |
|
|
| `pipelines service disable` | disable autostart and stop the supervisor |
|
|
| `pipelines service status` | autostart and supervisor state |
|
|
|
|
### Restarts keep sessions running
|
|
|
|
A server restart, `pipelines stop` and `pipelines update` stop the Pipelines
|
|
processes, not the work running on harnesses. On SIGTERM the server leaves
|
|
every OpenCode and Codex session running, records what it needs to reattach,
|
|
and exits. It does not interrupt or abort anything. On the next start:
|
|
|
|
- **Runs**: a stage whose OpenCode V2 session is still alive is re-adopted. The
|
|
runner waits for that same session (no new prompt), or reads the result it
|
|
reached while the server was down, and then continues the graph. A stage
|
|
that had not yet handed work to a harness starts again. A run between stages
|
|
continues with its next stage. The stage timeout restarts when the stage is
|
|
reattached. Its file-change list is marked partial, because the snapshot
|
|
taken before the restart is gone.
|
|
- **Chats**: turns, pending questions/approvals, background tasks and queued
|
|
prompts are picked up again, and a reply that arrived during the downtime
|
|
still notifies. See [Chat backends](chat-backends.md#restarts-keep-sessions-running).
|
|
|
|
If the harness is gone, the old behaviour applies and the run is interrupted
|
|
with the reason in its diagnostic, for example "Server restarted; the OpenCode
|
|
service running stage … was gone". This happens when the OpenCode service
|
|
process died, or the session belongs to a Pi or OpenCode V1 process that ended
|
|
with the server.
|
|
|
|
Only explicit operator actions stop sessions:
|
|
|
|
- `pipelines cancel <run>` (or Cancel in the app) interrupts a run's stage.
|
|
- Closing a chat, or Stop on its turn, interrupts that chat.
|
|
|
|
To stop everything: cancel the active runs and close or stop the busy chats,
|
|
then run `pipelines stop`. The owned OpenCode stage service stops itself at
|
|
shutdown when idle. The owned chat service, used only without an attached
|
|
endpoint, keeps running and is reused. Stop it by killing the `pid` in
|
|
`~/Library/Caches/pipelines/private/opencode-chat-service.json`
|
|
(`~/.cache/...` on Linux). To make every shutdown interrupt runs and close chat
|
|
clients as before, add `"PIPELINES_SHUTDOWN_SESSIONS": "stop"` to
|
|
`opencode_env` in `<prefix>/pipelines-install.json` and restart.
|
|
|
|
The OpenCode services the server starts (stage service, owned chat service)
|
|
run in their own process session, so macOS launchd leaves them running. The
|
|
systemd unit uses `KillMode=process`, so Linux stops only the supervisor, which
|
|
stops its own children; the detached services survive. An attached OpenCode
|
|
endpoint and the Codex App Server are separate processes anyway.
|
|
|
|
The login service is `~/Library/LaunchAgents/net.a-wan.pipelines.plist` on
|
|
macOS and `~/.config/systemd/user/net.a-wan.pipelines.service` on Linux. It
|
|
runs `manage.py supervise`, which owns the server and web proxy processes. This is login
|
|
autostart, not boot-without-login.
|
|
|
|
## Where things live
|
|
|
|
| Path | Contents |
|
|
| --- | --- |
|
|
| `<prefix>/pipelines-install.json` | manifest (ports, paths, install args, environment) |
|
|
| `<prefix>/bin/` | `pipelines`, `pipelines-server`, `pipelines-claude-host`, `pipelines-codex-host` |
|
|
| `<prefix>/data/pipelines.db` | SQLite database (definitions, runs, chats, settings) |
|
|
| `<prefix>/data/artifacts/` | run artifacts and session exports |
|
|
| `<prefix>/logs/` | `server.log`, `web.log`, `supervisor.log`, `install.log` |
|
|
| `~/.config/pipelines/web-auth.json` | web password and cookie secret (`PIPELINES_WEB_AUTH_FILE`) |
|
|
| `~/.config/pipelines/harnesses.json` | harness profiles (`PIPELINES_HARNESS_CONFIG`) |
|
|
| `~/.config/pipelines/client.json` | default server URL for the CLI/TUI |
|
|
| `~/.config/pipelines/claude-token` | optional Claude Code service token |
|
|
| `~/.config/pipelines/android/` | APK signing key |
|
|
| `~/.cache/pipelines/app-builds/` | cached web and APK builds |
|
|
|
|
`<prefix>` is `~/.local/share/pipelines` unless changed. On Linux the
|
|
supervisor's output also reaches `journalctl --user -u net.a-wan.pipelines.service`.
|
|
|
|
## Web sign-in password
|
|
|
|
On a new computer `./install` asks for the password (typed twice): at least
|
|
16 characters, or a passphrase of 4 or more random words (15 characters or more
|
|
in all). Without a terminal, set `PIPELINES_WEB_PASSWORD`. It is stored in
|
|
`~/.config/pipelines/web-auth.json` (mode 0600) with a generated cookie secret,
|
|
and reused unchanged on every reinstall. An invalid or non-private file stops
|
|
the installer rather than being reset.
|
|
|
|
After updating the installation, change the web sign-in password from the
|
|
checkout with:
|
|
|
|
```sh
|
|
./password
|
|
```
|
|
|
|
It prompts twice without echoing the password, applies the same strength rule,
|
|
and writes the private password file atomically. The updated web
|
|
proxy picks it up on the next request; no service restart is needed, and existing
|
|
sessions and running tasks remain connected. SSH is supported with an interactive
|
|
TTY. This changes the web/app sign-in password. `--prefix PATH` selects another installation, and
|
|
`PIPELINES_WEB_AUTH_FILE` selects an explicitly configured password file.
|
|
|
|
## Upgrading
|
|
|
|
```sh
|
|
pipelines update
|
|
```
|
|
|
|
`update` refuses while runs are executing (finish or cancel them first). It
|
|
then runs `git pull --ff-only` in the checkout it was installed from (skipped
|
|
when the branch has no upstream), re-runs `./install` with the recorded
|
|
arguments, restarts, and prints the startup report. Data, passwords and the signing key
|
|
are kept. If the installer fails, the previous
|
|
version keeps running.
|
|
|
|
Running `./install` again from the checkout does the same without the pull.
|
|
Run `./install --apk` again to offer a new APK to phones.
|
|
|
|
## Uninstall
|
|
|
|
```sh
|
|
pipelines uninstall # keeps data and credentials in <prefix>
|
|
pipelines uninstall --purge # also deletes <prefix>, including the database
|
|
```
|
|
|
|
Neither touches OpenCode, Claude Code, Codex, Pi or files in
|
|
`~/.config/pipelines`.
|
|
|
|
## Developer server
|
|
|
|
For working on Pipelines itself, run a server in the foreground on spare
|
|
ports. This is not the supported installation and does not serve the web app:
|
|
|
|
```sh
|
|
go run ./cmd/pipelines-server -db /tmp/dev.db -addr 127.0.0.1:8081
|
|
go run ./cmd/pipelines --url ws://127.0.0.1:8081/connect tui
|
|
```
|
|
|
|
`go run ./cmd/pipelines-server -help` lists the server flags (`-addr`, `-db`,
|
|
`-allow-authoring`, `-opencode-endpoint`, `-mdns`, `-mdns-port`). Without `-db` it uses the standard
|
|
per-user data directory (`XDG_DATA_HOME`, or Application Support on macOS).
|
|
|
|
## Troubleshooting
|
|
|
|
- **"Docker is installed but not running"**: start Docker Desktop (or the
|
|
daemon, and make sure your user may use it) and rerun. **"Docker … was not
|
|
found on PATH"**: install Docker first.
|
|
- **"cannot reach the Pipelines server"**: the service is stopped. Run
|
|
`pipelines start`; `pipelines doctor` and `pipelines logs` show why it stopped.
|
|
- **Ports busy**: a Docker installation or an old server may hold 8080 or 8082.
|
|
Stop it, or choose other ports with the flags above.
|
|
- **"No usable configured harness model"**: rerun `./install` in a terminal to
|
|
pick models, or pass `--model PROVIDER/MODEL`.
|
|
- **CLI talks to the wrong server**: `PIPELINES_URL` overrides the saved
|
|
default; unset it. Check `pipelines connection`.
|
|
- **Web app missing**: the server refuses to start without it. Run
|
|
`./install --web`.
|
|
- **A harness works in the terminal but not in the service**: the service uses
|
|
the `PATH` recorded at install time; `pipelines harness setup <name>` says
|
|
so. Rerun `./install` from a shell where the harness is on `PATH`. See [Harnesses](harnesses.md#troubleshooting).
|