如何在WP-CLI中添加Gravity Forms的命令行支持?

huangapple go评论64阅读模式
英文:

How to add gravity forms CLI support in WP-CLI?

问题

我正在尝试在终端中使用WP-CLI访问Gravity Forms的'gf'命令。所以我想执行这个命令:

wp gf check-update

我得到了:

'gf'不是一个已注册的wp命令。请参阅'wp help'以获取可用命令。

我正在尝试从他们的文档中自助寻找帮助。

英文:

I am trying to access gravity forms 'gf' commands with WP-CLI in terminal. so I want execute this command

wp gf check-update

I am getting:

'gf' is not a registered wp command. See 'wp help' for available commands.

I am trying to help myself from their docs. Nothing helpful found.

答案1

得分: 1

你必须安装Gravity Forms CLI插件,并且在WordPress站点的命令行目录中才能正确运行其中许多命令。这意味着你必须位于与你的站点的wp-config.php文件相同的目录中。

英文:

You must have the Gravity Forms CLI plugin installed and be in the command line directory of your WordPress site for many of its commands to work correctly. This means you must be in the same directory as your site's wp-config.php file

huangapple
  • 本文由 发表于 2023年7月12日 23:23:00
  • 转载请务必保留本文链接:https://go.coder-hub.com/76672175.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定