Skip to content

mocha-bot/mcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors