A fast, efficient command-line tool built with Rust to streamline common developer tasks.
- Fast & Lightweight: Built with Rust for optimal performance
- Multiple Utilities: JSON manipulation, UUID generation, hashing functions, and more
- Easy to Use: Simple, intuitive command-line interface
- Cross-Platform: Works on Linux, macOS, and Windows
Download the latest release for your platform from the releases page.
You can automatically install the tool using install.sh
curl -fsSL https://raw.githubusercontent.com/ikok07/dxcli/master/install.sh | bashgit clone https://github.com/ikok07/dxcli.git
cd dxcli
cargo build --releaseThe compiled binary will be available at target/release/dx.
Important: Before adding to PATH, move the dx executable to a permanent location on your disk (e.g., ~/bin/dx on Linux/macOS or C:\Tools\dx on Windows). Don't add the PATH from temporary locations like your Downloads folder.
- Type
Edit the system environment variablesin the start menu and open it - Click on the
Advancedtab - Click
Environment Variables - Under "User variables", select "Path" and click "Edit"
- Click "New" and add the path to the directory containing
dx.exe - Click "OK" on all dialogs
- Identify shell
echo $SHELL- Navigate to shell config file
- For Zsh:
nano ~/.zshrc - For Bash (Linux):
nano ~/.bashrc - For Bash (MacOS):
nano ~/.bash_profile
- Add this line to the end of the file
export PATH="/path/to/dx:$PATH"Replace /path/to/dx with the actual directory containing the dx binary.
- Apply the changes
source ~/.zshrc # or ~/.bashrc / ~/.bash_profileOr simply restart your terminal.
- Verify installation
dx --helpdx [OPTIONS] <COMMAND>Format, validate, and manipulate JSON data.
dx json format # Format/prettify JSON
dx json minify # Minify JSON
dx json validate # Validate JSON syntaxEncode data to various formats.
dx encode base64 # Encode to Base64
dx encode url # URL encode
dx encode hex # Encode to hexadecimalDecode data from various formats.
dx decode base64 # Decode from Base64
dx decode url # URL decode
dx decode hex # Decode from hexadecimalGenerate and validate cryptographic hashes.
dx hash md5 # Generate MD5 hash
dx hash sha256 # Generate SHA256 hash
dx hash sha512 # Generate SHA512 hash
dx hash file # Hash file contents
dx hash verify # Verify hash against inputGenerate UUIDs.
dx uuid v4 # Generate UUID v4 (random)
dx uuid v7 # Generate UUID v7 (time-based)Convert and format dates and timestamps.
dx time now # Get current timestamp
dx time unix # Get Unix timestamp
dx time from-unix # Convert from Unix timestamp
dx time to-unix # Convert to Unix timestamp
dx time relative # Calculate relative time
dx time format # Reformat timestamp
dx time tz # List all available timezonesText manipulation utilities.
dx text upper # Convert to uppercase
dx text lower # Convert to lowercase
dx text title # Capitalize text
dx text camel # Convert to camelCase
dx text pascal # Convert to PascalCase
dx text snake # Convert to snake_case
dx text kebab # Convert to kebab-case
Decode and verify JWT tokens.
dx jwt decode # Decode JWT token
dx jwt verify # Verify JWT tokenCommon RegEx operations.
dx regex test # Test regex pattern
dx regex match # Match regex pattern
dx regex replace # Replace using regexGenerate Lorem Ipsum texts.
dx lorem words # Generate random words
dx lorem sentences # Generate random sentences
dx lorem paragraphs # Generate random paragraphsContributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
cargo testcargo run -- [COMMAND] [OPTIONS]This project is licensed under the MIT License
- Report bugs: GitHub Issues
Built with ❤️ using Rust