Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.34 KB

File metadata and controls

64 lines (48 loc) · 1.34 KB

mcd - mocha CLI deployment

Deploy the mocha stack to VPS targets. Manage secrets, credentials, and remote infrastructure from one binary.

Installation

# 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/bin

Update

mcd update

Quick 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 logs

Credential vault

Admin: provision access for an employee

mcd cred create aldiwildan --pubkey age1...
mcd cred provision aldiwildan mysql --db mydb --role readonly --mysql-dsn "root:pass@tcp(host:3306)/"

Employee: fetch credentials

mcd cred fetch --name aldiwildan

Author

Muhammad Wildan Aldiansyah - Mocha Bot Dev