Skip to content
Save my spot

Example: deliver the contents of a website

Send a build as a prepared state and switch to it deliberately afterwards.

You need

The pipeit CLI (Linux, macOS, Windows), signed in, and the rights each command needs.

This example uses folder transfer with the release mode.

  1. On B, create a private alias such as website and normal receive rights.
  2. B sets up the folder policy for the mode you want. For prepared states use --mode release and explicit --activator devices. When changing a policy, state the complete rights you want; do not assume silent additions.
  3. A builds the website locally or in CI and sends the immutable output folder with --mode release.
  4. Only after the verified tree receipt, read the current state with release head and activate it deliberately.
  5. Wait for the separate activation receipt. The application itself has to use the activated state; starting a process or restarting a service stays a job for your own operating environment.

Example for steps 3 to 5 after the full setup:

pipeit send ./dist --contents --mode release --profile v2 \
  --target TARGET-DEVICE --destination website --json
pipeit release head --target TARGET-DEVICE --policy POLICY-ID
pipeit release activate TRANSFER-ID --target TARGET-DEVICE \
  --policy POLICY-ID --expected-generation GENERATION

Still stuck?

Check the troubleshooting guide first. If that does not help, tell us what happened.