A robust Rust-based CLI toolset designed for efficient DevOps workflows.
Intelligently cleans cache files generated by Terraform and Terragrunt:
.terragrunt-cachedirectories.terraformdirectories.terraform.lock.hclfiles- Automatically filters duplicate sub-paths to avoid redundant deletions.
Batch upgrades for popular AI code assistants:
Claude Code(@anthropic-ai/claude-code)OpenAI Codex(@openai/codex)Google Gemini CLI(@google/gemini-cli)
Install, remove, and update common tools with an interactive checklist:
nvm(installs latest Node.js)pnpmRust(via rustup)Go(downloads latest official archive/pkg)Terraformkubectlkubectxk9sgituv(installs latest Python)tmux(includes TPM + tmux.conf setup)vim(includes vim-plug + molokai config)ffmpeg(build script on Linux, Homebrew on macOS)
Manages MCP servers for Claude, Codex, and Gemini CLI:
| MCP Tool | Description |
|---|---|
sequential-thinking |
Sequential Thinking |
context7 |
Documentation Query |
chrome-devtools |
Chrome DevTools |
kubernetes |
K8s Management |
github |
GitHub Integration |
cloudflare-* |
Cloudflare MCP Servers (Docs/Workers/Observability/etc.) |
Optional Feature Flags & MCP Credentials (build-time only via .env):
How to enable:
cp .env.example .env- Fill in the values you need.
- Build the binary (
cargo build --release).
Available MCP options:
- Context7 MCP: set
CONTEXT7_API_KEYto enable thecontext7tool. - GitHub MCP: set
GITHUB_PERSONAL_ACCESS_TOKEN(required) andGITHUB_HOST(optional, defaultgithub.com) to enable thegithubtool. - Cloudflare MCP: set
enable_cloudflare_mcp=trueto enablecloudflare-*tools (OAuth during install).
For Codex MCP installs, build-time values for CONTEXT7_API_KEY, GITHUB_PERSONAL_ACCESS_TOKEN, and GITHUB_HOST are written into ~/.codex/config.toml, so runtime env vars aren't required.
Cloudflare MCP installs use OAuth in interactive mode (stdio inherited) so URL prompts and auth codes work. On WSL, open the auth URL with wslview or run the CLI on Windows if the localhost callback cannot reach WSL.
Cloudflare's MCP server catalog: https://developers.cloudflare.com/agents/model-context-protocol/mcp-servers-for-cloudflare/
Quickly installs and runs strict scans against the current Git repo:
gitleaks(history + working tree)trufflehog(history + working tree)git-secrets(history + working tree)
Auto-install tries common package managers and go install, then falls back to GitHub releases (requires curl/wget and tar/unzip).
Working tree scans only include Git-tracked files and skip anything ignored by .gitignore, with raw logs printed per scan.
Generate and execute 4-step prompts for LLM workflows:
- Generate: Create prompt files from YAML/JSON specification files
- Run: Interactive or automated prompt execution with Claude CLI
- Status: View feature execution progress and status
- Spec field
verification_urlmay be empty to indicate no validation URL
View the Prompt Template for Feature Specifications
The 4-step workflow:
- P1: Requirements, implementation, and deployment
- P2: E2E validation in verification environment
- P3: Refactoring and optimization
- P4: E2E regression testing in verification environment
Progress is tracked per feature with session management for resumable execution.
curl -fsSL https://raw.githubusercontent.com/DennySORA/Ops-Tools/main/install.sh | bashDownload the version corresponding to your system from the Releases page.
# Build
cargo build --release
# Configure environment variables (Optional, for MCP management features)
cp .env.example .env
# Edit .env and fill in your credentialsIf installed via the script, run directly:
ops-toolsIf built from source:
cargo run
# or
./target/release/toolsSelect a function from the menu:
- Clean Terraform/Terragrunt cache files
- Upgrade AI code assistant tools
- Install/Update system packages (macOS/Linux)
- Upgrade Rust projects and toolchain
- Git secret scan (Gitleaks/TruffleHog/Git-Secrets)
- Manage MCP tools (Claude/Codex/Gemini)
- LLM Prompt Generator (4-step workflow)
- Language settings (English/Traditional Chinese/Simplified Chinese/Japanese)
You'll be prompted to choose a language at startup, and you can switch languages later from the menu.
Language preference is saved to ~/.config/ops-tools/config.toml (Linux), ~/Library/Application Support/ops-tools/config.toml (macOS), or %APPDATA%\\ops-tools\\config.toml (Windows).
Contributions are welcome! Please submit a Pull Request or open an Issue.
MIT License
