HomeDocumentationContributorsArticlesChangelogSupport
DrupalConsole siteDrupalConsole site
HomeDocumentationContributorsArticlesChangelogSupport
  • Welcome
  • 什么是 Drupal Console
    为什么你应该关注?Drupal Console 是怎样提供帮助的?Drupal Console 项目相关链接
  • 安装 Drupal Console
    使用 Drupal Console 安装器使用 ComposerInstalling on Windows
  • 使用 Drupal Console
    如何拷贝配置文件如何下载,安装并运行 Drupal 8如何在多站点环境下使用 Drupal Console
  • 可用命令
  • Using site alias
    Setting up your local machineHow to use Drupal Console in a remote installationConnecting to a virtual environment
  • What is a chain command
    Registering chain commands as regular commandsListing registered commands
  • Creating custom Commands
    The Command ClassRegistering CommandsConfiguring the CommandCommand LifecycleGetting Services from the Service ContainerGenerating Code with a Command
  • 参与贡献
    最低要求获取项目如何运行保持更新创建一个 Issue 和 Pull 请求文档编写
  • 常见问题
    安装问题权限没有列出的命令交互模式
  • 参考资料
Català (ca)English (en)Español (es)فارسی (fa-ir)Français (fr)हिन्दी (hi)Magyar (hu)日本語 (ja)मराठी (mr)Português brasileiro (pt-br)Romanian (ro)pусский язык (ru)Vietnamese (vn)简体中文 (zh-hans)
  • Welcome
  • 什么是 Drupal Console
    为什么你应该关注?Drupal Console 是怎样提供帮助的?Drupal Console 项目相关链接
  • 安装 Drupal Console
    使用 Drupal Console 安装器使用 ComposerInstalling on Windows
  • 使用 Drupal Console
    如何拷贝配置文件如何下载,安装并运行 Drupal 8如何在多站点环境下使用 Drupal Console
  • 可用命令
  • Using site alias
    Setting up your local machineHow to use Drupal Console in a remote installationConnecting to a virtual environment
  • What is a chain command
    Registering chain commands as regular commandsListing registered commands
  • Creating custom Commands
    The Command ClassRegistering CommandsConfiguring the CommandCommand LifecycleGetting Services from the Service ContainerGenerating Code with a Command
  • 参与贡献
    最低要求获取项目如何运行保持更新创建一个 Issue 和 Pull 请求文档编写
  • 常见问题
    安装问题权限没有列出的命令交互模式
  • 参考资料

使用 Composer 安装 Drupal Console

使用 Composer 安装 Drupal Console

你可以使用 composer 进行安装。

全局安装:

$ composer global require drupal/console:@stable

添加 bin 文件夹到系统 path 环境变量中:

$ echo "PATH=$PATH:~/.composer/vendor/bin" >> ~/.bash_profile

现在你可以使用它了。例如:生成一个模块:

$ drupal generate:module
HomeDocumentationContributorsArticlesChangelogSupport
© 2020, Built using GatsbyJS