This directory contains example configurations and usage scenarios for MayR Labs CLI.
mayrlabs uuid
# Output: 550e8400-e29b-41d4-a716-446655440000# Default 16 characters
mayrlabs password
# Custom length
mayrlabs password 32# Default SHA256
mayrlabs hash "my-secret-string"
# Specify algorithm
mayrlabs hash "my-string" --algorithm md5
mayrlabs hash "my-string" --algorithm sha1
mayrlabs hash "my-string" --algorithm sha256mayrlabs add-license --type mit --author "Your Name" --year 2025mit- MIT Licenseapache2- Apache License 2.0gpl3- GNU General Public License v3bsd3- BSD 3-Clause License
# For Go projects
mayrlabs editor-config go
# For JavaScript/TypeScript projects
mayrlabs editor-config javascript
# For Python projects
mayrlabs editor-config pythonmayrlabs ci --lang go --vcs github
mayrlabs ci --lang javascript --vcs github
mayrlabs ci --lang flutter --vcs githubmayrlabs ci --lang go --vcs gitlab# Interactive mode (prompts for language)
mayrlabs format
# Direct language specification
mayrlabs format go
mayrlabs format javascript
mayrlabs format pythonmayrlabs env update-examplemayrlabs env update-example .env.stagingmayrlabs env validatemayrlabs env arrange
mayrlabs env arrange .env.stagingmayrlabs changelog createmayrlabs changelog record v1.0.0 "Initial release"mayrlabs changelog record v1.1.0 "New features" --wipmayrlabs git prune-stalemayrlabs flutter create-scriptsThis creates several scripts in the scripts/ directory:
build-apk.sh- Build debug APKbuild-apk-release.sh- Build release APKbuild-appbundle.sh- Build App Bundlebuild-ios.sh- Build iOS appbuild-ipa.sh- Build IPAclean.sh- Clean Flutter buildrun-tests.sh- Run Flutter tests
mayrlabs php cs-fixmayrlabs php lintmayrlabs js setup-prettiermayrlabs js prettymayrlabs quotemayrlabs random-int
# Will prompt for min and max values# Setup your Gemini API key
mayrlabs ai-setup# Ask a question
mayrlabs ai "How do I implement a binary search tree in Go?"
# Multi-line input (if no query provided)
mayrlabs ai# Get AI review/analysis of a file
mayrlabs ai-file src/main.go
# Get help understanding code
mayrlabs ai-file complex-algorithm.py# Create a short alias for ai command
mayrlabs ai-alias ask
# Now you can use:
ask "your question here"# Remove stored Gemini API key
mayrlabs ai-clear# Start a session with a summary
mayrlabs session-start "Implementing user authentication"
# Start without summary (will prompt)
mayrlabs session-start# Start an encrypted session for sensitive work
mayrlabs secure-session-start "Security patch development"
# Will prompt for encryption password# List all regular sessions
mayrlabs sessions
# List all secure sessions
mayrlabs secure-sessions# Prune sessions older than 30 days
mayrlabs session-prune 30
# Clear all sessions (requires PIN)
mayrlabs session-clear# Create an alias for mayrlabs
mayrlabs alias ml
# Now you can use 'ml' instead of 'mayrlabs'
ml version# Show all created aliases
mayrlabs alias-list# Remove all aliases (with confirmation)
mayrlabs alias-clearmayrlabs dns-clearAutomatically detects your OS and runs the appropriate command:
- macOS:
sudo dscacheutil -flushcache - Linux:
sudo systemd-resolve --flush-caches - Windows:
ipconfig /flushdns
mayrlabs create-keystoreInteractive prompts for:
- Key alias
- Keystore filename
- Validity period
# Generate .editorconfig
mayrlabs editor-config go
# Create LICENSE
mayrlabs add-license --type mit --author "Your Name" --year 2025
# Generate CI/CD configuration
mayrlabs ci --lang go --vcs github
# Create CHANGELOG
mayrlabs changelog create
# Format code
mayrlabs format go# Generate .editorconfig
mayrlabs editor-config javascript
# Setup Prettier
mayrlabs js setup-prettier
# Create LICENSE
mayrlabs add-license --type mit --author "Your Name" --year 2025
# Generate CI/CD configuration
mayrlabs ci --lang javascript --vcs github
# Format code
mayrlabs js pretty# After adding new variables to .env
mayrlabs env update-example
# Validate the .env file
mayrlabs env validate
# Organize variables by prefix
mayrlabs env arrange# Generate build scripts
mayrlabs flutter create-scripts
# Generate CI/CD
mayrlabs ci --lang flutter --vcs github
# Create .editorconfig
mayrlabs editor-config dart
# Create LICENSE
mayrlabs add-license --type mit --author "Your Name" --year 2025# Setup AI once
mayrlabs ai-setup
# Start a development session
mayrlabs session-start "Building REST API"
# Get help from AI during development
mayrlabs ai "How do I handle concurrent requests in Go?"
# Review code with AI
mayrlabs ai-file src/api/handler.go
# Create a short alias for faster queries
mayrlabs ai-alias ask
# Use the alias
ask "Best practices for error handling in Go?"# Start an encrypted session for sensitive work
mayrlabs secure-session-start "Security vulnerability fix"
# Work on sensitive code...
# List your secure sessions later
mayrlabs secure-sessions
# Clean up old sessions
mayrlabs session-prune 30You can use MayR Labs CLI in Git hooks. For example, create .git/hooks/pre-commit:
#!/bin/bash
# Format code before commit
mayrlabs format goThe generated CI/CD files are ready to use and include:
- Dependency installation
- Testing
- Building
- Linting
You can add MayR Labs CLI commands to your Makefile:
.PHONY: setup
setup:
mayrlabs editor-config go
mayrlabs add-license --type mit --author "Team" --year 2025
mayrlabs ci --lang go --vcs github- Interactive Mode: Most commands support interactive mode if you omit required parameters
- Force Overwrite: Many file-generating commands support
--forceflag - Help: Use
--helpwith any command for detailed information - Chaining: Combine with shell operators for powerful workflows
# Generate multiple files at once
mayrlabs editor-config go && \
mayrlabs add-license --type mit --author "Me" --year 2025 && \
mayrlabs changelog createmayrlabs add-license --type mit --author "Your Name" --year 2025
mayrlabs editor-config go
mayrlabs ci --lang go --vcs github
mayrlabs changelog create# Daily workflow
mayrlabs env validate
mayrlabs env arrange
mayrlabs env update-examplemayrlabs format go
mayrlabs git prune-stale# Generate secure password
mayrlabs password 32
# Generate hash for verification
mayrlabs hash "important-data" --algorithm sha256Run any command with --help for detailed usage:
mayrlabs --help
mayrlabs ci --help
mayrlabs env --help