A PHP CLI application that helps you organize your aliases.
composer require gipfel-dev/alias
After installing Alias CLI we recommend to call the setup command once for automatically creation of aliases.json
.
./vendor/bin/alias setup
To get an overview of all available commands you can call alias without any parameters.
./vendor/bin/alias
After defining your aliases in aliases.json
or aliases.dev.json
you can call
./vendor/bin/alias execute
to get an overview of all available aliases. You can also call an alias directly:
./vendor/bin/alias execute {alias}
At the moment our package looks for aliases.dev.json
and if not exists for aliases.json
. Run ./vendor/bin/alias setup
for automatically creating a aliases.json
file. Please be aware that your values must be executable by your terminal.
{
"about": "echo 'This is allowed.'",
"update": [
"echo 'This is also allowed'",
"composer update",
"npm update"
]
}
Do you like this project? Support it by donating
Alias CLI is an open-source software licensed under the MIT license.