不带提示符的cakephp控制台(-f选项?)

不带提示符的cakephp控制台(-f选项?),cakephp,cakephp-2.0,cake-console,Cakephp,Cakephp 2.0,Cake Console,一些CakeConsole命令(如模式更新)需要用户确认操作。(您确定…消息) 我想在Puppet(自动安装)下使用它,因此没有实际用户输入yes进行确认 是否有强制console执行此操作的选项?不询问用户?有一个选项 --是,-y不提示确认。小心 但是没有添加是选项-如果您使用的是早期版本的2.x,则需要升级以提供此选项 -> app/Console/cake schema update --help Welcome to CakePHP v2.8.0-dev Console ---

一些CakeConsole命令(如
模式更新
)需要用户确认操作。(
您确定…
消息)

我想在Puppet(自动安装)下使用它,因此没有实际用户输入
yes
进行确认

是否有强制console执行此操作的选项?不询问用户?

有一个选项 --是,-y不提示确认。小心

但是没有添加
选项-如果您使用的是早期版本的2.x,则需要升级以提供此选项

-> app/Console/cake schema update --help

Welcome to CakePHP v2.8.0-dev Console
---------------------------------------------------------------
App : app
Path: /var/www/someapp.dev/
---------------------------------------------------------------
Usage:
cake schema update [options]

Options:

--help, -h        Display this help.
--verbose, -v     Enable verbose output.
--quiet, -q       Enable quiet output.
--plugin, -p      The plugin to use.
--path            Path to read and write schema.php (default:
                  /var/www/someapp.dev/app/Config/Schema)
--file            File name to read and write.
--name            Classname to use. If its Plugin.class, both name and
                  plugin options will be set.
--connection, -c  Set the db config to use. (default:
                  default)
--dry             Perform a dry run on create and update commands.
                  Queries will be output instead of run.
--snapshot, -s    Snapshot number to use/make.
--force, -f       Force "generate" to create a new schema
--yes, -y         Do not prompt for confirmation. Be careful!