AliasMate
Your terminal command management companion
Save, manage, and re-run shell commands with their working directories. Eliminate repetitive typing and boost your productivity.
Quick Install
npm install -g aliasmateWhy Use AliasMate?
The main purpose is simple: eliminate repetitive terminal work and reduce errors
Stop Retyping Complex Commands
Save long, complex commands once and run them with a simple alias. No more scrolling through history or remembering intricate syntax.
Boost Your Productivity
Reduce command execution time from minutes to seconds. Focus on building, not on typing or remembering paths.
Perfect for Team Workflows
Export and share command sets with your team. Onboard new developers faster with standardized workflows.
Never Lose Context
Commands remember their working directory. Run project-specific commands from anywhere in your filesystem.
Real-World Impact
80%
Time saved on repetitive commands
95%
Reduction in typing errors
60%
Faster team onboarding
How to Use
Simple commands for powerful workflow automation
Save the Last Command
Just ran a command? Save it instantly with the name you choose.
aliasmate prev <name>π‘ Perfect for capturing that command you just perfected
Example
Run a Saved Command
Execute any saved command from anywhere. Optionally override the directory.
aliasmate run <name> [path]π‘ Add '.' to run in current directory: aliasmate run build .
Example
View All Commands
See all your saved commands with their directories and details.
aliasmate listπ‘ Alias: Use 'aliasmate ls' for quick listing
Example
Find Commands Fast
Search through names, commands, or directories to find what you need.
aliasmate search <query>π‘ Alias: Use 'aliasmate find deploy' as a shortcut
Example
Update Commands
Modify the command, directory, or path mode interactively.
aliasmate edit <name>π‘ Current values are shown as defaults for easy editing
Example
Share with Your Team
Export commands to JSON for backup or sharing. Import to load commands.
aliasmate export/importπ‘ Version control your exports for team-wide consistency
Example
Quick Start Workflow
# Run your command
npm run build:production
# Save it instantly
aliasmate prev build-prod
# Run from anywhere, anytime
aliasmate run build-prod
Core Features
Powerful capabilities designed for developers
Path Mode Intelligence
Each command can run in its saved directory or your current directory
- βΈSaved mode: Always runs in the original directory
- βΈCurrent mode: Runs wherever you are now
- βΈPerfect for project-specific vs general utilities
Persistent Storage
All commands stored in ~/.config/aliasmate/config.json
- βΈSurvives terminal restarts and system reboots
- βΈJSON format for easy manual editing if needed
- βΈIncludes metadata: creation date, last modified
Complex Command Support
Save and execute multi-line scripts and pipelines
- βΈSupport for pipes, redirects, and chains
- βΈEnvironment variables preserved
- βΈWorks with any shell command or script
Team Collaboration
Export and import command sets for seamless sharing
- βΈExport to version-controlled JSON files
- βΈImport prompts before overwriting
- βΈPerfect for onboarding and standardization
Command Structure
{
"build-prod": {
"command": "npm run build:production",
"directory": "/Users/dev/my-project",
"pathMode": "saved",
"createdAt": "2026-01-12T10:30:00Z",
"updatedAt": "2026-01-12T10:30:00Z"
}
}Clean JSON structure makes manual editing and version control easy
Use Cases
See how AliasMate fits into your workflow
Frontend Development
Manage dev servers, builds, and tests across multiple projects
devβnpm run devStart development server
buildβnpm run buildProduction build
testβnpm test -- --coverageRun tests with coverage
Backend & APIs
Server management, database operations, and migrations
apiβnpm startStart API server
migrateβnpm run migrate:latestRun database migrations
seedβnpm run seed:devSeed development data
DevOps & Deployment
Deployment scripts, monitoring, and infrastructure commands
deploy-prodβ./scripts/deploy.sh productionDeploy to production
logsβtail -f /var/log/app.logStream application logs
healthβcurl http://localhost:3000/healthCheck service health
Multi-Project Workflows
Switch between projects and run context-specific commands
api-testβnpm testTest API project
web-devβnpm run devStart web frontend
mobile-buildβexpo build:iosBuild mobile app
π
Startup Teams
Move fast with standardized commands across the team
π’
Enterprise
Maintain consistency across large, distributed teams
π¨βπ»
Solo Developers
Boost personal productivity and reduce context switching
Hacks & Pro Tips
Level up your AliasMate game with these expert strategies
Naming Conventions
Use prefixes for grouping
Organize commands with consistent prefixes like 'test-', 'deploy-', 'db-'
test-unit, test-integration, test-e2eEnvironment suffixes
Add environment indicators to deployment commands
deploy-dev, deploy-staging, deploy-prodAction-first naming
Start with the action verb for better searchability
build-frontend, start-api, clean-cacheWorkflow Optimization
Chain related commands
Save complex pipelines as single commands with proper error handling
npm run build && npm run test && npm run deployUse path mode strategically
'saved' for project-specific, 'current' for generic utilities
build commands β saved, git helpers β currentBackup regularly
Create automated backups with date stamps
aliasmate export ~/backups/aliases-$(date +%Y%m%d).jsonPower User Tips
Combine with shell aliases
Create ultra-short shell aliases for your most-used AliasMate commands
alias amr='aliasmate run' β amr buildVersion control your exports
Keep team command sets in git for easy distribution and updates
git/team-commands.json β aliasmate import team-commands.jsonDocument complex commands
Use descriptive names that explain what the command does
'rebuild-docker-clear-cache' > 'rdc'Advanced Techniques
Environment-specific commands
Save commands with environment variables for different contexts
NODE_ENV=production npm startConditional execution
Use && and || for smart command chaining
npm run lint && npm test || echo 'Failed'Interactive commands
Save commands that prompt for input during execution
npm run deploy -- --interactiveQuick Pro Tips
π‘ After saving a command, test it immediately with 'aliasmate run' to verify
π‘ Use 'aliasmate search' instead of 'list' when you have many commands
π‘ Export your commands monthly as a safety net against config corruption
π‘ Team leads: Create a starter pack export for new developers
π‘ Prefix debugging commands with 'debug-' for easy identification
π‘ Save git worktree commands to quickly switch between feature branches
π― Real-World Hack: The 5-Second Rule
If you`ve typed a command more than twice in a day, it deserves an alias. Train yourself to save immediatelyβyour future self will thank you.
Get Started
Install AliasMate and start saving time in under a minute
Installation
npm (recommended)
yarn
pnpm
First Steps
# 1. Verify installation
# 2. Save your first command
# 3. Run it from anywhere
GitHub Repository
View source, report issues, contribute
Full Documentation
Complete API reference and guides
Requirements
π₯οΈ
Cross Platform
Linux, macOS, Windows
β‘
Node.js
Version 14.0.0 or higher
π―
TypeScript
Built with TypeScript
Ready to supercharge your terminal workflow?
npm install -g aliasmate