LinuxCommandLibrary

php-yii

yii framework console

TLDR

Create new application

$ php yii
copy
Run migrations
$ php yii migrate
copy
Generate model
$ php yii gii/model --tableName=[table]
copy
Clear cache
$ php yii cache/flush-all
copy
List commands
$ php yii help
copy

SYNOPSIS

php yii [command] [options]

DESCRIPTION

yii is the Yii framework console. Manages Yii PHP applications.
The tool handles migrations, generators, and tasks. Part of Yii framework.

PARAMETERS

COMMAND

Yii console command.
migrate
Run database migrations.
gii/model
Generate model.
cache/flush-all
Clear all caches.
help
Show available commands.

CAVEATS

Requires Yii framework. Run from project root.

HISTORY

Yii console is part of Yii PHP framework for application management.

SEE ALSO

php(1), composer(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community