One page, every command you need day to day.
./start.sh # interactive
./start.sh --prebuilt ubuntu -m single # GHCR image, no build
./start.sh -e debian -m dual --build # local build, 2 machines
./start.sh -e alpine -m power -p 2225 # custom port, heavy profile
make prebuilt ENGINE=debian MODE=singlessh -p 2223 developer@localhost # password: ghost
ssh -p 2224 developer@localhost # dual, second machine
docker exec -it ghost-machine-single bash # no SSH
source aliases.sh && ghost-ssh single # helper
ssh -p 2223 -L 3000:localhost:3000 developer@localhost # reach a dev server./start.sh status
./start.sh logs
docker inspect -f '{{.Config.Image}}' ghost-machine-single
docker stats --no-stream
docker compose --profile dual config./start.sh restart # in place
docker compose --profile dual stop # pause, container kept
docker compose --profile dual start # resume
./start.sh stop # remove containers + network
./clean.sh -a -y # + volume + local images, keeps mounts/
./clean.sh --nuke --dry-run # preview a full purge
./clean.sh --nuke -y # tenants, all image tags, cache, registry
./clean.sh --nuke --keep-cache -y # same, but keep the shared build cache
./clean.sh --nuke --hard -y # + mounts/ and snapshots/ (destructive)make snapshot
./snapshot.sh -o backup.tar.gz
./restore.sh backup.tar.gz
./restore.sh -y backup.tar.gzharness-update # inside sandbox: refresh all
harness-update opencode # one harness
./start.sh --update-harness # from host
opencode --version && agy --version && rtk --version
node /opt/hela-src/setup.mjs doctor --prefix /opt/hela # HeLa cells + runtime./tenant.sh add alice --prebuilt --engine debian --cpu 2 --mem 4G
./tenant.sh list
./tenant.sh stats
./tenant.sh stop alice && ./tenant.sh start alice
./tenant.sh snapshot alice
./tenant.sh delete alice --archive -y./start.sh --prebuilt debian -m single --pull # newest
./start.sh --image ghcr.io/1999azzar/ghost-machine-ubuntu:v2.1.0 -m single # pinned
make build-debian && ./start.sh -e debian -m single
docker images | grep -E 'ghost-machine|template'cp .env.example .env # then edit
$EDITOR .env
./start.sh stop && ./start.sh # recreate after changing ports/tokens/image| Variable | Default |
|---|---|
G1_PORT / G2_PORT |
2223 / 2224 |
GHOST_USER |
developer |
SSH_PASSWORD_AUTH |
true |
GHOST_IMAGE |
engine default |
GHOST_HARNESS_UPDATE |
latest |
HARNESS_UPDATE_INTERVAL_HOURS |
24 |
make lint # shellcheck + bash -n + compose
make test # 8 suites, includes docs checks
make docs # regenerate the docs site# port busy
./start.sh -p 2225
# host key changed
ssh-keygen -R "[localhost]:2223"
# mounts owned by the wrong user
./start.sh stop && ./start.sh