Skip to content

Basic Commands ​

Windwalker Core ships a set of commands for common operations. This page lists them by area. Each area has its own page with the full options.

Common Commands ​

  • php windwalker list: show all commands.
  • php windwalker run, exec: run scripts and PHP code, see Running Code.
  • php windwalker g (generate:make), generate:revise: see Code Generator.
  • php windwalker site:down, site:up, cache:clear, cache:purge: see Maintenance.

Server Dumper ​

server:dumper starts a server that receives dump() output from other processes. It needs symfony/var-dumper.

bash
php windwalker server:dumper
php windwalker server:dumper tcp://127.0.0.1:9912 -f html

The host argument defaults to the app.dump_server.host config value, or tcp://127.0.0.1:9912 when that is not set. The default format is cli.

Shell Completion ​

auto-complete installs tab completion for zsh and bash.

bash
php windwalker auto-complete
php windwalker auto-complete -s zsh -f

The command writes ~/.windwalker_completion_<shell> and adds a source line to your shell profile (~/.zshrc, or ~/.bashrc or ~/.bash_profile). Open a new terminal, or run the source line yourself, to activate it.

  • -s, --shell-type: zsh or bash. Defaults to the name of $SHELL.
  • -f, --force: overwrite an existing completion file.

INFO

Completion for command names is always available. Completion for argument and option values appears only for commands that implement CompletionHandlerInterface, such as cache:clear and cache:purge.

Mail Testing ​

mail:test sends a test message through the configured mail transport, which helps check the mail settings.

bash
php windwalker mail:test

Language Merging ​

lang:merge merges language files. See php windwalker lang:merge --help for its arguments.

bash
php windwalker lang:merge

Other Commands ​

pkg:* (package installation) and lang:merge have no full page yet. Run php windwalker <command> --help for their options.

Run php windwalker <command> --help for the arguments of any command.

Released under the MIT License.