how to use console use in Symfony2

Posted by Elzo Valugi on Stack Overflow See other posts from Stack Overflow or by Elzo Valugi
Published on 2010-05-31T23:08:44Z Indexed on 2010/05/31 23:13 UTC
Read the original article Hit count: 674

Filed under:
|
|

I found the console and run it like this:

root@valugi-laptop:/var/www/sandbox/hello# php console
Symfony version 2.0.0-DEV - hello

Usage:
  Symfony [options] command [arguments]

Options:
  --help      -h  Display this help message.
  --quiet     -q  Do not output any message.
  --verbose   -v  Increase verbosity of messages.
  --version   -V  Display this program version.
  --color     -c  Force ANSI color output.
  --no-interaction -n  Do not ask any interactive question.
  --shell     -s  Launch the shell.

Available commands:
  help               Displays help for a command (?)
  list               Lists commands
assets
  :install           
bundle
  :pharize           
container
  :graphviz          
doctrine
  :generate-proxies  
init
  :application       
  :bundle            
router
  :debug             Displays current routes for an application
  :dump-apache       

But I cannot run any of those commands. I am trying like this:

php console Symfony -h

But I get

[InvalidArgumentException]         
Command "Symfony" is not defined.  

Any suggestions?

© Stack Overflow or respective owner

Related posts about cli

Related posts about symfony-2.0