Skip to content

Commit

Permalink
more options
Browse files Browse the repository at this point in the history
  • Loading branch information
jcheron committed Apr 15, 2017
1 parent e898346 commit a772a1e
Showing 1 changed file with 32 additions and 9 deletions.
41 changes: 32 additions & 9 deletions docs/createproject.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,35 @@ in a bash console, call the new command in the root folder of your web server :
Installer arguments
-------------------

+-------------+------------+----------------------------------+-----------+
| short name | name | role | default |
+=============+============+==================================+===========+
| b | dbName | Sets the database name. | |
+-------------+------------+----------------------------------+-----------+
| s | serverName | Defines the db server address. | 127.0.0.1 |
+-------------+------------+----------------------------------+-----------+
| p | port | Defines the server port. | 3306 |
+-------------+------------+----------------------------------+-----------+
+-------------+------------+----------------------------------+-----------+------------------------+
| short name | name | role | default | Allowed values |
+=============+============+==================================+===========+========================+
| b | dbName | Sets the database name. | | |
+-------------+------------+----------------------------------+-----------+------------------------+
| s | serverName | Defines the db server address. | 127.0.0.1 | |
+-------------+------------+----------------------------------+-----------+------------------------+
| p | port | Defines the db server port. | 3306 | |
+-------------+------------+----------------------------------+-----------+------------------------+
| u | user | Defines the db server user. | root | |
+-------------+------------+----------------------------------+-----------+------------------------+
| w | password | Defines the db server password. | '' | |
+-------------+------------+----------------------------------+-----------+------------------------+
| q | phpmv | Integrates phpMv-UI toolkit. | false | semantic,bootstrap,ui |
+-------------+------------+----------------------------------+-----------+------------------------+
| m | all-models | Creates all models from db. | false | |
+-------------+------------+----------------------------------+-----------+------------------------+

Arguments usage
---------------

short names
^^^^^^^^^^^
Example of creation of the blog project, connected to the bogDb database, with generation of all models
::
Micro new blog -b=blogDb -m=true

long names
^^^^^^^^^^^
Example of creation of the blog project, connected to the bogDb database, with generation of all models and integration of phpMv-toolkit
::
Micro new blog --dbName=blogDb --all-models=true --phpmv=semantic

0 comments on commit a772a1e

Please sign in to comment.