bdb-deploy
bdb-deploy
A thin wrapper around the real bdb-deploy CLI (bin/bdb-deploy.mjs in this package). This skill does not construct rsync/ssh commands itself. The CLI does that deterministically; the skill's job is knowing when and how to invoke it, and reading its output correctly.
Why this exists
Freehand rsync/ssh commands written by an LLM in the moment are a real risk once they touch a production web root or hold an SSH key path: a wrong flag, a missing trailing slash on an rsync source (changes whether the contents or the directory itself gets copied), or a mistyped remote path can silently corrupt or wipe a live deployment. The CLI encodes the correct, tested behavior once; this skill just knows how to call it.
Before running anything
- Check for
bdb-deploy.jsonin the project root. If it doesn't exist, this project isn't set up yet — see "First-time setup" below. - If it exists, read it to see what targets are configured (
bdb-deploy.jsonhas no secrets in it, safe to read directly). Note which targets are"production": true.
First-time setup (no bdb-deploy.json yet)
Run bdb-deploy init interactively — it asks the user for host, SSH user, key path, remote directory, etc. Do not pre-fill these from guesses; if you don't know the real values (host, remote path, which SSH key), ask the user rather than inventing plausible-sounding ones. A wrong host or path here means the next command genuinely deploys somewhere unintended.