Razify is a powerful CLI tool designed to streamline the management of .env files for developers. It helps detect secret leaks, synchronize environment variables across teammates, and ensures consistency between local, staging, and production environments. Simplifying these crucial tasks, Razify enables developers to focus on what truly matters.
Overview
Razify is an essential command-line interface (CLI) tool designed for managing .env files, specifically aimed at developers. This powerful tool helps in detecting secret leaks, syncing environment drift across teammates, and validating environment parity between local, staging, and production environments, all from the comfort of a terminal. Built with Go, Razify operates offline and does not require any cloud accounts, making it suitable for any programming language.
Core Features
Razify addresses common challenges faced by development teams regarding environment management. It consolidates multiple functions into a single binary, allowing for streamlined operations. Below are some of the key features:
| Command | Description |
|---|---|
razify diff | Compare two .env files to identify changes between them. |
razify scan | Detect secret leaks, weak passwords, and exposed credentials. |
razify validate | Ensure all required variables are present before deployment. |
razify docs | Automatically generate markdown documentation from .env.example. |
razify audit | Generate a comprehensive health report with a score out of 100. |
razify fix | Sync missing keys from .env.example to .env automatically. |
razify init | Use an interactive wizard to bootstrap your .env.example file. |
razify version | Check the current version and search for updates. |
razify guard | Prevent Git commits that may contain exposed secrets. |
Use Cases
Diffing Environments
Compare local environments to identify discrepancies:
razify diff .env .env.staging
Secret Leak Detection
Scan for potential security risks in your environment files:
razify scan .env
Pre-Deployment Validation
Verify that all necessary variables are included:
razify validate .env .env.example
Documentation Generation
Automatically create clear documentation for environment variables:
razify docs .env.example
Git Protection
Implement safeguards against committing sensitive data:
razify guard install
CI/CD Integration
Razify can serve as a security gate within CI/CD pipelines by auditing environment files before deployment. A GitHub Actions workflow is provided to demonstrate integration with continuous validation.
JSON Output Support
Razify commands support --json output, enabling easy integration with scripts and AI agents:
razify scan .env --json
Compatibility
Razify is compatible with numerous frameworks including React, Node.js, Python, Go, Laravel, and Ruby on Rails, ensuring it fits seamlessly into diverse development environments.
Roadmap
Future updates for Razify may include a Visual Studio Code extension and a web dashboard, enhancing usability and functionality even further.
Contribution
Contributions to Razify are actively encouraged. Interested developers can get started by cloning the repository and building the project.
No comments yet.
Sign in to be the first to comment.