This repository was archived by the owner on Dec 8, 2022. It is now read-only.
forked from mako-framework/framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Command line: Basics
Marco Montalbano edited this page Jul 31, 2017
·
1 revision
Mako includes a CLI tool called reactor. Reactor allows you to run parts of you application from the command line. This is especially useful when creating long running tasks such as cronjobs.
Mako includes a several useful tasks by default. To list the available tasks just type this in your console:
php reactor
It should print the following on a default Mako installation
Usage:
php reactor <action> [arguments] [options]
Global options:
--env Allows you to override the default environment.
--database Allows you to override the default database connection.
Available actions:
app.up Takes the application online.
app.down Takes the application offline.
app.generate_secret Generates a new application secret.
console Starts a debug console.
migrate.status Checks if there are any outstanding migrations.
migrate.create Creates a new migration.
migrate.up Runs all outstanding migrations.
migrate.down Rolls back the last batch of migrations.
migrate.reset Rolls back all migrations.
server Starts a local development server.
Executing a task is done like this:
php reactor app.down
You can list detailed information about a specific task like this:
php reactor console --task-info
All tasks have two special parameters,
envanddatabasewhich lets you override the environment and database connection to use.
- Getting started: Installation
- Getting started: Configuration
- Getting started: Error handling
- Getting started: Constants
- Getting started: Coding standards
- Controllers: Controllers
- Controllers: Request
- Controllers: Response
- Databases: Basics
- Databases: Query builder
- Databases: Orm
- Databases: Migrations
- Command line: Basics
- Command line: Custom tasks
- Packages: Basics
- Packages: Composer packages
- Learn more: Array helper
- Learn more: Asset manager
- Learn more: Autoloading
- Learn more: Caching
- Learn more: Cookies
- Learn more: Events
- Learn more: File helper
- Learn more: Html helper
- Learn more: Internationalization
- Learn more: Logging
- Learn more: Number helper
- Learn more: Pagination
- Learn more: Redis client
- Learn more: Rest client
- Learn more: Security helpers
- Learn more: Sessions
- Learn more: String helper
- Learn more: Url helper
- Learn more: Uuid helper
- Learn more: Validation
- Learn more: Views