Skip to content

The console tool

ccapndave edited this page Feb 23, 2011 · 7 revisions

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.

Create a new Flextrine application

flextrine app:create app_name

Generate AS3 entities from the current PHP entities

flextrine as3:generate-entities <path>

Create the database schema

flextrine orm:schema-tool:create

Update the database schema

# 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

Drop the database schema

# 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
Clone this wiki locally