Setup CLI

npx @syntropic137/setup: interactive CLI for installing and managing the Syntropic137 platform.

The setup CLI is a zero-dependency Node.js tool for bootstrapping and managing your Syntropic137 installation. It wraps Docker Compose operations with an interactive TUI.

Usage

npx @syntropic137/setup [command]

Running without a command shows an interactive menu.

Commands

CommandPurpose
initFull setup wizard: Docker check, secrets, Claude credential, GitHub App, agent skills, syn CLI, pull images, start stack
statusShow running services (docker compose ps) and the agent skills state
startStart the stack
stopStop the stack
logsTail service logs (docker compose logs -f)
updatePull latest container images and restart
cliInstall or update the syn CLI
skillsInstall, update (skills update) or check (skills status) the agent skills for Claude Code and Codex. plugin is a deprecated alias
resetFactory reset; a dry run until you add --yes (details)
github-appOpen the GitHub App's settings and installation pages in your browser. Creating an App happens during init
tunnelSet up remote access and webhook delivery through a Cloudflare tunnel (details)
credentialsView, rotate, or roll back service credentials (show, rotate, rollback)

init Options

npx @syntropic137/setup init [options]

--org <name>         Create GitHub App under an organization (default: personal account)
--name <app-name>    GitHub App name (default: syntropic137)
--dir <path>         Install directory (default: ~/.syntropic137)
--skip-github        Skip GitHub App creation
--skip-docker        Generate config files only, don't pull images or start services
--webhook-url <url>  Set webhook URL for the GitHub App
--install-cli        Install the syn CLI without asking (--no-install-cli skips it)
-y, --yes            Answer yes instead of asking (the agent skills and the syn CLI
                     in a non-interactive init)

What init Creates

~/.syntropic137/
├── docker-compose.syntropic137.yaml   # Service definitions
├── selfhost-entrypoint.sh             # Secret injection script
├── selfhost.env.example               # Configuration reference
├── .env                               # Your configuration (chmod 600)
├── init-db/
│   └── 01-create-databases.sql        # Database initialization
├── secrets/                           # Readable only by you
│   ├── db-password.secret
│   ├── redis-password.secret
│   ├── minio-password.secret
│   └── github-app-private-key.pem     # If GitHub App configured
└── workspaces/                        # Agent workspace mount

Reset

reset returns the machine to a fresh state so the next init starts from nothing. It is a dry run by default: it lists exactly what it would remove and removes nothing.

npx @syntropic137/setup reset               # dry run
npx @syntropic137/setup reset --yes         # do it
npx @syntropic137/setup reset --all --yes   # also images, the syn CLI and the agent skills
TargetSelected byWhat happens
Install directoryalwaysmoved first to <dir>.backup-YYYYMMDD-HHMMSS (chmod 700, it holds your secrets); --no-backup deletes it instead
Selfhost stackalwayscontainers, networks and volumes of the syntropic137_selfhost compose project
ghcr.io/syntropic137/* images--imagesremoved
syn CLI--clinpm uninstall -g @syntropic137/cli
Agent skills--skillsthe Syntropic137 skills only

Reset refuses anything it cannot prove is a Syntropic137 install (your home directory, a symlink, a directory without the selfhost compose file or .env), and refuses to run with --yes while Docker is stopped. It never touches the GitHub App on github.com: it prints the app's settings URL so you can delete it, or reuse it with the private key kept in the backup.

Reconfiguring

Run init again to reconfigure. The wizard detects an existing installation and asks one question: reconfigure from scratch? Yes runs docker compose down -v, which deletes the stack's volumes and data, then regenerates secrets (the old ones are backed up to .bak files). No keeps the existing configuration and offers to start the stack.

Planned: Tunnel management and secrets reconfiguration directly from the interactive TUI. Tracked in syntropic137/syntropic137#422.

On this page