Skip to content
CliprWiki

cliprctl command reference

All commands of the management tool.

scripts/cliprctl sets up Clipr, manages .env, deploys and checks health. It only needs bash, Docker with the Compose plugin and openssl; curl is optional. It runs from any directory and always works in the project folder.

scripts/cliprctl help

Overview

Command Effect
setup [--wizard] New installation: questionnaire, writes .env. If .env exists, the settings menu opens; --wizard runs the questionnaire with the existing values.
config Settings menu for all .env values.
config show All set values, secrets masked.
config get KEY [--reveal] Print one value (secrets only with --reveal).
config set KEY VALUE Set one value; empty with "". Validated like in the menu.
deploy [service…] [--build] [--no-cache] [--pull] Starts or updates all or only the named services. Details under Deployment.
restart [service…] Restart without recreating, waits for "healthy".
stop [service…] Stop.
health [--brief|--quiet] Check health.
status Short form of health.
logs [service] [-f] Logs; options as in docker compose logs.
backup [dir] [--online] Back up the data volume.
restore <file.tgz> Restore a backup; the current state is backed up first.
update [--no-backup] git pull, backup, rebuild, deploy, check.
overlay list|add|remove <file> Manage compose overlays (see below).
compose … docker compose with this installation's files.

General options: -y or --yes accepts the default for every question (for scripts). The language follows LANG; force it with CLIPR_CTL_LANG=de or en. NO_COLOR=1 turns colours off.

Settings menu

scripts/cliprctl config

The menu shows the settings in the same sections as .env.example, each with the explanation from the template. New variables of a new Clipr release therefore appear automatically.

  • Choose a number → section → variable → enter a new value. Enter keeps the value, - clears it.
  • Every value is validated (ports, hostnames, email addresses, fixed choices, numbers). Invalid values are not accepted.
  • Passwords are entered hidden and only shown masked.
  • / searches names and explanations.
  • e opens .env in your editor ($VISUAL, $EDITOR, otherwise nano or vi). After closing, every changed line is validated; invalid values are reverted, lines without KEY=value discard the whole edit.
  • Nothing is saved until you press s. The menu then offers to recreate the affected containers – Docker Compose itself detects which services use the changed values.

CLIPR_SECRET_KEY is locked – in the menu, with config set and in the editor. A change made in the editor is discarded. Only setup creates the key, for a new installation. A different value would make all existing data unreadable.

Overlays

Optional components are separate compose files added to the base file docker-compose.yml:

File Component
docker-compose.protonbridge.yml Proton Mail Bridge
docker-compose.secrets.yml Key and initial password as Docker secrets instead of in .env
docker-compose.wiki.yml Wiki
docker-compose.wiki-dev.yml Wiki development: changes go straight into docs/wiki

The files in use are listed in COMPOSE_FILE in .env (separated by :). This way a plain docker compose … always uses the same files as cliprctl.

scripts/cliprctl overlay list
scripts/cliprctl overlay add docker-compose.wiki.yml
scripts/cliprctl overlay remove docker-compose.wiki.yml
scripts/cliprctl deploy                 # then apply

Backups of .env

Before every change cliprctl saves a copy .env.bak-<time> (mode 600). The last ten are kept. They contain the same credentials as .env itself – do not share them.

Exit codes

Value Meaning
0 Success, or for health: all good
1 Error, or for health: at least one warning
2 For health: at least one critical finding
64 Unknown command