Skip to content

System Lifecycle

dde provides five system:* commands. This guide explains when each one applies.

system:stop halts every dde container (global services and versioned service containers) but does not remove them. A subsequent system:up starts the same containers again — without docker run having to create new ones.

system:down stops the containers and removes them. system:up must then create fresh containers from the images.

Rule of thumb: if you just want to put your laptop aside and resume later, use system:stop. If you want to clean up (or the containers are broken), use system:down.

install vs. update — one-off vs. per-version

Section titled “install vs. update — one-off vs. per-version”

system:install is the one-off setup step:

  • Install the mkcert root CA (requires sudo / admin trust).
  • Write the DNS resolver file (/etc/resolver/test on macOS, systemd-resolved or NetworkManager configuration on Linux).
  • Create the default wildcard certificate for *.test.
  • Build and start the global services.
  • Install shell completion.
  • Install the Claude skill (when Claude Code is detected).

You call system:install once, the first time you use dde. For package manager installations (APT / Arch / Alpine / RPM) it runs automatically via the post-install hook. On Homebrew it shows up as a caveats message.

system:update is the refresh step for a new dde release:

  • Remove all dde containers.
  • Rebuild the global service images with docker build --pull (picks up the latest upstream base image).
  • Start the global services again.
  • Refresh everything that is bound to the dde binary version (shell completion, Claude skill).

system:update does not touch the root CA, DNS configuration, or the default certificate — those are one-off setup steps, not per-version refresh steps. Package manager upgrades run system:update automatically.

SituationCommand
Closing the laptop, resume latersystem:stop
Tearing down, cleaning upsystem:down
After first-time installationsystem:install
After brew upgrade dde or similarsystem:update
Bring services back up (after stop or down)system:up

See also: Commands, Installation.