#!/bin/sh # intentic remove: a bootstrap shim. It finds or downloads the ic CLI and hands over to `ic sandbox remove`, which # takes sandboxes off this device: their containers, networks and named /work volumes, with /work and /history kept # recoverable for 7 days (`ic sandbox restore ` brings one back). The flow, its questions and its output are ic's # (_sandbox/ic/src/sandbox/remove.rs); this file only maps the flags every older command handed out onto it. # # Usage: # curl -fsSL https://intentic.dev/remove/ | sh # remove one sandbox (the card's command) # curl -fsSL https://intentic.dev/remove | sh # pick which sandboxes to remove # curl -fsSL https://intentic.dev/cleanup | sh -s -- --all # the older shape, still served # ./_site/site/public/scripts/cleanup.sh [SLUG...] [--all] [-y] [--agent-auth] [--purge] # # Flags, mapped onto ic's: # SLUG... the sandboxes to remove (none: ic asks which) # -a, --all every sandbox on this device # -y, --yes, --force answer the recoverable remove's question (--yes); never a permanent delete's # --agent-auth also remove the shared dev agent-auth volume (the AI logins of every dev sandbox) # --purge, --now delete the data now instead of keeping it recoverable (--now); ic asks for the name # -h, --help ic's own help for the command # # POSIX sh (piped into `sh`, which is dash on Debian/Ubuntu/WSL; no `pipefail`). Piped, stdin is this script, so ic asks # its questions on the controlling terminal (/dev/tty), never on stdin. set -eu # >>> generated from _site/site/scripts-kit/kit.sh: edit it there, then run node _tools/checks/scripts-kit.mjs --fix # The shim kit: the protocol's shapes (docs/ops/cli-output-protocol.md) for the few lines a script prints before it # hands over to ic or intentic-machine, which draw everything after that themselves. POSIX sh: piped into `sh`, which # is dash on Debian, Ubuntu and WSL. # # kit_begin [scope] the header; rich only, and only in a script that draws a whole flow # kit_step