triggercode / mamp-cli

Command line interface to work with the popular MAMP server environment
MIT License
14 stars 1 forks source link

mamp-cli

What is it?

A command line interface for working with MAMP. It can start and stop your MAMP, but also easily switch the document root so that you can switch projects easily by using a favorite list.

Warning

Please backup your httpd.conf file of your MAMP before using this script. It can be found here:

/Applications/MAMP/conf/apache/httpd.conf

Requirements

How it works

Installation

$ npm install -g mamp-cli

Depending on your setup you might need sudo in front of this command.

Usage

Use this to print the help:

$ mamp

Available Commands

$ mamp start
// start the server

$ mamp stop
// stop the server

$ mamp restart
// restart the Apache, run with sudo

$ mamp list
// list your favorite shortcuts

$ mamp add <shortcut>
// add the current directory to your favorites

$ mamp remove <shortcut>
// remove a shortcut

$ mamp switch <shortcut|path>
// switch the document root to the one of your shortcuts or directly pass a path

$ mamp cwd
// set the current working directory as document root

Version History

0.1.0
0.0.9
0.0.8
0.0.7
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1

License

See file LICENSE