Skip to content

Latest commit

 

History

History
70 lines (54 loc) · 2.19 KB

README.md

File metadata and controls

70 lines (54 loc) · 2.19 KB

Alias CLI

A PHP CLI application that helps you organize your aliases.

Build Status Total Downloads Latest Stable Version License

Installation

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

Usage

Summary

To get an overview of all available commands you can call alias without any parameters.

./vendor/bin/alias

Execute an 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}

aliases.json

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.

Allowed schema

{
  "about": "echo 'This is allowed.'",
  
  "update": [
    "echo 'This is also allowed'",
    "composer update",
    "npm update"
  ] 
}

Support the development

Do you like this project? Support it by donating

License

Alias CLI is an open-source software licensed under the MIT license.