Deploy the mocha stack to VPS targets. Manage secrets, credentials, and remote infrastructure from one binary.
# macOS arm64
curl -sL https://github.com/mocha-bot/mcd/releases/latest/download/mcd_darwin_arm64.tar.gz | tar xz -C
/usr/local/bin# macOS amd64
curl -sL https://github.com/mocha-bot/mcd/releases/latest/download/mcd_darwin_amd64.tar.gz | tar xz -C
/usr/local/bin# Linux amd64
curl -sL https://github.com/mocha-bot/mcd/releases/latest/download/mcd_linux_amd64.tar.gz | tar xz -C
/usr/local/bin# Linux arm64
curl -sL https://github.com/mocha-bot/mcd/releases/latest/download/mcd_linux_arm64.tar.gz | tar xz -C
/usr/local/binUpdate
mcd updateQuick start
mcd keys setup # generate age encryption key
mcd deploy # encrypt secrets → rsync → compose up
mcd status # check all containers
mcd logs api # tail api logsCredential vault
mcd cred create aldiwildan --pubkey age1...
mcd cred provision aldiwildan mysql --db mydb --role readonly --mysql-dsn "root:pass@tcp(host:3306)/"
mcd cred fetch --name aldiwildan