Skip to main content
Command

terminus self:console


Description

Opens an interactive PHP console within Terminus. Note: This functionality is useful for debugging Terminus or prototyping Terminus plugins.

Example Usage

terminus self:console <site>.<env>

self:console Opens an interactive PHP console within Terminus.


self:console <site> Opens an interactive PHP console within Terminus and loads <site> as $site.


self:console <site>.<env> Opens an interactive PHP console within Terminus and loads <site> and its <env> environment as $site and $env.


Options

OptionDescription
--ansiForce (or disable --no-ansi) ANSI output
--defineDefine a configuration item value.
--helpDisplay help for the given command. When no command is given display help for the <info>list</info> command
--no-ansiNegate the "--ansi" option
--no-interactionDo not ask any interactive question
--quietDo not output any message
--verboseIncrease the verbosity of messages: 1 for normal output (-v), 2 for more verbose output (-vv), and 3 for debug (-vvv)
--versionDisplay this application version
--yesAnswer all confirmations with "yes"
Back to all commands