oph - OpenHealth CLI
A universal command-line tool for the OpenHealth development team. Replaces the Makefile with a more ergonomic and feature-rich CLI.
Installation
From source
Development build
# Binary will be at target/release/oph
Usage
Development Environment
Production Environment
Database Operations
Bun Scripts
Redis
Storage
Validation
Docker Cleanup
Shell Completions
# Bash
# Zsh
# Fish
Interactive Mode
Command Mapping from Makefile
| Makefile Target | oph Command |
|---|---|
make dev-up |
oph dev up |
make dev-down |
oph dev down |
make dev-logs |
oph dev logs |
make dev-logs-service SERVICE=api |
oph dev logs api |
make dev-shell SERVICE=db |
oph dev shell db |
make prod-up |
oph prod up |
make prod-reload-nginx |
oph prod reload-nginx |
make db-dev-shell |
oph db shell |
make db-prod-shell |
oph db shell --prod |
make db-dev-backup |
oph db backup |
make redis-dev-cli |
oph redis cli |
make validate-dev |
oph validate dev |
make clean-images |
oph clean images |
Development
# Run in development mode
# Build release binary
# Run tests
License
MIT