-
Notifications
You must be signed in to change notification settings - Fork 3
The console tool
Flextrine comes with a console (command line) tool in the php/bin folder called flextrine
which is used for a number of functions, such as creating new Flextrine applications, creating AS3 entities and managing the database schema .
In fact the flextrine
console tool is a wrapper around the Doctrine console tool with some extra commands specific to Flextrine. The following are a list of command that you are likely to use in day-to-day Flextrine situations.
Note that as of v0.9 the Flextrine Manager has been replaced by the console tool.
flextrine app:create app_name
Note that this will automatically set your newly created application as the default application - if you look at php/config.yml you will see:
default_app: <app_name>
This means that Flex and the console tool will use the last created application by default.
flextrine as3:generate-entities <path>
flextrine orm:schema-tool:create
# This shows the SQL that will be executed on an update without actually making any changes
flextrine orm:schema-tool:update --dump-sql
# Execute the SQL
flextrine orm:schema-tool:update --force
# This shows the SQL that will be executed on a drop without actually making any changes
flextrine orm:schema-tool:drop --dump-sql
# Execute the SQL
flextrine orm:schema-tool:drop --force