skooppaos / appserver-io-cli
CLI app for starting new projects and more.
Requires
- php: >=5.6.0
- league/flysystem: ~1.0
- symfony/console: ~2.5|~3.0
- symfony/process: ~2.1|~3.0.0
This package is not auto-updated.
Last update: 2024-04-27 17:03:44 UTC
README
Commands to be made available in the CLI.
-
"about" command. This is the default and explains how the CLI works.
-
"new" command. creates a new project.
-
Arguments/ Options:
- name - mandatory - The name of the project.
- [--with] - optional - the "with" parameter allows you to add different applications into the project automatically. For instance "--with routlt" will install the project with the
routlt
package.
-
Questions/ Parameters:
- If the name of the project is missing from command, ask for it.
- Ask for directory name.
- Ask for org name
-
Tasks to do:
- Create project/ application directory.
- Create git repo.
- Create composer project.
- Create skeleton app.
- If a package was added with ´--with´, install it.
-
-
"install" command. To install full prebuilt applications. "appserver install example" will install the example app automatically.
-
"restart" command. This is for restarting appserver.
-
"virtual-host" command. To create a new virtual host for a particular app. The app must be created first.
- Arguments: [name-of-directory] - mandatory - The name of the application directory.
- .
-
"remove" command. To remove an application, which is no longer needed.
-
"environment" command. Changes the environment.
- Arguments: [prod|dev] - To select between production or development modes.
- .
-
"scanner" command. Creates a scanner to automatically restart appserver, when changes are made to a particular application's directory.
- Arguments:
[name-of-directory] - mandatory - The name of the directory under
/webapps
, which should be watched.
- Arguments:
[name-of-directory] - mandatory - The name of the directory under
-
Arguments: [start|stop]