β‘ Quick Start Guide
Get ChatrixCD up and running in 2 minutes! π
π What You'll Need: Matrix account, Semaphore UI access
π― What You'll Get: Fully working CI/CD bot in your chat!
Step 1οΈβ£: Download & Run
π¦ Download from the Download Page
β No Python required! Pre-built binaries for Linux.
Visit the Download Page to get the latest binary for your platform.
# Example for x86_64:
wget https://github.com/CJFWeatherhead/ChatrixCD/releases/latest/download/chatrixcd-linux-x86_64.dist.tar.gz
tar -xzf chatrixcd-linux-x86_64.dist.tar.gz
cd chatrixcd-linux-x86_64.dist
./chatrixcdconfig.json doesn't exist. Keep this terminal open. Step 2οΈβ£: Invite Bot to Your Room
In your Matrix client (Element, etc.):
Can be encrypted or unencrypted
Use the user_id from your config:
@your-bot:matrix.org Look for a friendly greeting! π
Step 3οΈβ£: Start Using Commands!
Try these commands in your Matrix room:
!cd help π See all available commands
!cd projects π List Semaphore projects
!cd templates 1 π List templates for project 1
!cd run 1 2 π Run template 2 in project 1
!cd status π Check last task status
!cd logs π View logs for last task
π§© Advanced Run Options
You can pass tags and raw arguments when running a template:
- Positional tags:
!cd run 4 5 update,molecule - Flagged tags:
!cd run 4 5 --tags=update,molecule - Raw args:
!cd run 3 1 --args="--some --args -e"
Notes:
- If the target template does not support tags/arguments, the bot will warn you and suggest running without them.
- Quoted arguments are supported.
π Command Aliases
Speed up common actions by creating your own shortcuts:
- Add:
!cd aliases add <alias> <command>- Works with prefixed or unprefixed commands
- Example:
!cd aliases add deploy run 4 5 --tags=prod --arg="--dry-run"
- Remove:
!cd aliases remove <alias> - List:
!cd aliases
Aliases expand with any extra arguments you append when using them. For example, if deploy maps to run 4 5, then typing !cd deploy --tags=prod runs !cd run 4 5 --tags=prod.
Note: The base command must be a valid bot command; extra flags are passed through unchanged.
π― Example Workflow
Hereβs a complete example of running a deployment:
You: !cd projects
Bot: π Projects:
1. Production Website
2. API Server
You: !cd templates 1
Bot: π Templates for "Production Website":
1. Deploy to Staging
2. Deploy to Production
You: !cd run 1 2
Bot: π Ready to run "Deploy to Production"?
React with π to confirm or π to cancel
You: [React with π]
Bot: β
Task started! Task ID: 42
I'll keep you posted! π
[After a few minutes]
Bot: β
Task #42 completed successfully! π
Duration: 3m 24s
π Easter Eggs
ChatrixCD has a fun personality! Try these hidden commands:
!cd pet π Give the bot some love
!cd scold π Bot feels bad
π Next Steps
βοΈ Configure More
Add custom aliases, configure log tailing, set up OIDC
Configuration Guide β