Available Commands
Drupal Console provides 183 commands across 32 namespaces.
Global
| Command | Usage |
|---|---|
| about | Drupal Consoleプロジェクトについての基本情報を表示 |
| chain | 連続した複数のコマンドを実行 |
| check | 動作環境をチェックする |
| composerize | Converts Drupal codebase to composer. |
| exec | 外部コマンドを実行する |
| help | コマンドのヘルプを表示する |
| init | 設定ファイルをユーザーのホームディレクトリにコピーする |
| list | 利用可能なコマンド一覧を表示する |
| server | PHPのbuilt-in web serverでDrupalを起動する |
| shell | Open a shell providing an interactive REPL (Read–Eval–Print-Loop). |
| snippet | Runs PHP code |
cache
| Command | Usage |
|---|---|
| cache:rebuild | キャッシュのクリアと再生成 |
| cache:tag:invalidate | Invalidate cache tags. |
config
| Command | Usage |
|---|---|
| config:delete | 設定を削除する |
| config:diff | Ouput configuration items that are different in active configuration compared with a directory. |
| config:edit | 設定を編集する |
| config:export | 設定をエクスポートする |
| config:export:content:type | コンテンツタイプとフィールドをエクスポート |
| config:export:entity | Export a specific config entity and their fields. |
| config:export:single | 単一のコンフィグレーションをymlファイルとしてエクスポート |
| config:export:view | Export a view in YAML format inside a provided module to reuse in other website. |
| config:import | Import configuration to current application. |
| config:import:single | Import the selected configuration. |
| config:override | Override config value in active configuration. |
| config:validate | Validate a drupal config against its schema |
create
| Command | Usage |
|---|---|
| create:comments | ダミーのコメントを作成 |
| create:nodes | ダミーのノードを作成 |
| create:roles | Create dummy roles for your Drupal 8 application. |
| create:terms | ダミーのタームを作成 |
| create:users | ダミーのユーザーを作成 |
| create:vocabularies | ダミーのボキャブラリーを追加 |
cron
| Command | Usage |
|---|---|
| cron:execute | モジュール単位、もしくは全てのcronを実行 |
| cron:release | Cronのシステムロックを解放 |
database
| Command | Usage |
|---|---|
| database:add | Add a database to settings.php |
| database:client | データベースクライアントを起動 |
| database:connect | データベースクライアントを起動 |
| database:drop | データベースから全てのテーブルを削除 |
| database:dump | データベースの構造とコンテンツをダンプ |
| database:log:clear | DbLogからイベントを削除する |
| database:log:poll | Poll the watchdog and print new log entries every x seconds |
| database:query | Executes a SQL statement directly as argument |
| database:restore | データベースの構造とコンテンツをリストア |
debug
| Command | Usage |
|---|---|
| debug:breakpoints | 利用可能なブレークポイントの一覧を表示 |
| debug:cache:context | Displays current cache context for the application. |
| debug:chain | チェーンファイルの一覧を表示 |
| debug:config | 現在の設定を表示する |
| debug:config:settings | 設定ファイル内のKey-Valueペアを表示する |
| debug:config:validate | Validate a schema implementation before a module is installed. |
| debug:container | サービスを表示 |
| debug:cron | cronを実装しているモジュールの一覧を表示 |
| debug:database:log | DBLogのイベントを表示 |
| debug:database:table | データベース内の全てのテーブルを表示 |
| debug:dotenv | Debug Dotenv debug values. |
| debug:entity | Debug entities available in the system |
| debug:event | Display current events |
| debug:features | List registered features. |
| debug:hook | commands.debug.hook.description |
| debug:image:styles | 画像スタイルの一覧を表示 |
| debug:libraries | ライブラリを表示 |
| debug:migrate | マイグレーションを表示 |
| debug:module | 利用可能なモジュールを表示 |
| debug:multisite | マルチサイトの一覧を表示 |
| debug:permission | Displays all user permissions. |
| debug:plugin | Display all plugin types, plugin instances of a specific type, or the definition for a specific plugin. |
| debug:queue | キューを表示 |
| debug:rest | Restリソースを表示 |
| debug:roles | Displays current roles for the application |
| debug:router | ルートを表示 |
| debug:settings | Drupal Consoleのユーザー設定を表示する |
| debug:site | 全てのローカルおよびリモートサイトを表示する |
| debug:state | ステートキーを表示 |
| debug:theme | テーマの情報を表示 |
| debug:theme:keys | Displays all theme keys provided by hook_theme functions |
| debug:update | 利用可能なアップデートを表示 |
| debug:update:composer | Displays current updates available from the composer file |
| debug:user | ユーザー情報を表示 |
| debug:views | Viewsのリソースを表示する |
| debug:views:plugins | Viewsのプラグインを表示 |
devel
| Command | Usage |
|---|---|
| devel:dumper | commands.devel.dumper.messages.change-devel-dumper-plugin |
docker
| Command | Usage |
|---|---|
| docker:init | Create a docker-compose.yml file |
dotenv
| Command | Usage |
|---|---|
| dotenv:init | Add support and required config to work with an .env file |
entity
| Command | Usage |
|---|---|
| entity:delete | Delete an specific entity |
features
| Command | Usage |
|---|---|
| features:import | Import module config. |
field
| Command | Usage |
|---|---|
| field:info | View information about fields. |
generate
| Command | Usage |
|---|---|
| generate:ajax:command | Generate & Register a custom ajax command |
| generate:authentication:provider | Generate an Authentication Provider |
| generate:breakpoint | Generate breakpoint |
| generate:cache:context | Generate a cache context |
| generate:command | Generate commands for the console. |
| generate:composer | Generate a composer.json file |
| generate:controller | Generate & Register a controller |
| generate:entity:bundle | Generate a new content type (node / entity bundle) |
| generate:entity:config | Generate a new config entity |
| generate:entity:content | Generate a new content entity |
| generate:event:subscriber | Generate an event subscriber |
| generate:form | Generate a new "FormBase" |
| generate:form:alter | Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter |
| generate:form:config | Generate a new "ConfigFormBase" |
| generate:help | Generate an implementation of hook_help() |
| generate:jstest | Generate a JavaScript test. |
| generate:module | Generate a module. |
| generate:module:file | Generate a .module file |
| generate:permissions | Generate module permissions |
| generate:plugin:block | Generate a plugin block |
| generate:plugin:ckeditorbutton | Generate CKEditor button plugin. |
| generate:plugin:condition | Generate a plugin condition. |
| generate:plugin:field | Generate field type, widget and formatter plugins. |
| generate:plugin:fieldformatter | Generate field formatter plugin. |
| generate:plugin:fieldtype | Generate field type plugin. |
| generate:plugin:fieldwidget | Generate field widget plugin. |
| generate:plugin:imageeffect | Generate image effect plugin. |
| generate:plugin:imageformatter | Generate image formatter plugin. |
| generate:plugin:mail | Generate a plugin mail |
| generate:plugin:migrate:dataparser | Generate a migrate data parser |
| generate:plugin:migrate:process | Generate a migrate process plugin |
| generate:plugin:migrate:source | Generate a migrate source plugin |
| generate:plugin:queue | Drupal Console Queueworker generator. |
| generate:plugin:rest:resource | Generate plugin rest resource |
| generate:plugin:rules:action | Generate a plugin rule action |
| generate:plugin:rules:dataprocessor | Generate a plugin rule dataprocessor |
| generate:plugin:skeleton | Generate an implementation of a skeleton plugin for those plugins Drupal Console do not have a specific generator |
| generate:plugin:type:annotation | Generate a plugin type with annotation discovery |
| generate:plugin:type:yaml | Generate a plugin type with Yaml discovery |
| generate:plugin:validationconstraint | Generate a validation constraint plugin. |
| generate:plugin:views:field | Generate a custom plugin view field. |
| generate:post:update | Generate an implementation of hook_post_update_NAME() |
| generate:profile | Generate a profile. |
| generate:routesubscriber | Generate a RouteSubscriber |
| generate:service | Generate service |
| generate:site:alias | Generates a site alias. |
| generate:theme | Generate a theme. |
| generate:twig:extension | Generate a Twig extension. |
| generate:update | Generate an implementation of hook_update_N() |
image
| Command | Usage |
|---|---|
| image:styles:flush | 画像スタイルのフラッシュを実行 |
locale
| Command | Usage |
|---|---|
| locale:language:add | サイトでサポートする言語を追加 |
| locale:language:delete | サイトでサポートする言語を削除 |
| locale:translation:status | 利用可能な翻訳のアップデートを表示 |
migrate
| Command | Usage |
|---|---|
| migrate:execute | Execute a migration available for application |
| migrate:rollback | Rollback one or multiple migrations |
| migrate:setup | Load and create the relevant migrations for a provided legacy database |
module
| Command | Usage |
|---|---|
| module:dependency:install | Install dependencies module in the application |
| module:download | モジュールをダウンロード |
| module:install | モジュールをインストール |
| module:path | モジュールの相対パスまたは絶対パスを返す |
| module:uninstall | モジュールをアンインストール |
| module:update | コアやモジュールを更新 |
multisite
| Command | Usage |
|---|---|
| multisite:new | Sets up the files for a new multisite install. |
| multisite:update | Update the files for a multisite installed. |
node
| Command | Usage |
|---|---|
| node:access:rebuild | ノードのアクセス権限を再構築します。全てのコンテンツに対する権限設定を削除し、現在のモジュールおよび設定で置き換えます。 |
queue
| Command | Usage |
|---|---|
| queue:run | 選択したキューを処理する |
quick
| Command | Usage |
|---|---|
| quick:start | Download, install and serve a new Drupal project |
rest
| Command | Usage |
|---|---|
| rest:disable | Restリソースを無効化する |
| rest:enable | Restリソースを有効化する |
role
| Command | Usage |
|---|---|
| role:delete | Delete roles for the application |
| role:new | Create roles for the application |
router
| Command | Usage |
|---|---|
| router:rebuild | ルートを再構築する |
settings
| Command | Usage |
|---|---|
| settings:set | Change a specific setting value in DrupalConsole config file |
site
| Command | Usage |
|---|---|
| site:import:local | Import/Configure an existing local Drupal project |
| site:install | Drupalプロジェクトをインストールする |
| site:maintenance | サイトをメンテナンスモードに切り替える |
| site:mode | システムのパフォーマンス設定を切り替える |
| site:new | Download a new Drupal project |
| site:statistics | サイトの統計情報を表示する |
| site:status | Drupalのインストール状態を表示する |
state
| Command | Usage |
|---|---|
| state:delete | ステートを削除する |
| state:override | ステートキーをオーバーライドする |
taxonomy
| Command | Usage |
|---|---|
| taxonomy:term:delete | Delete taxonomy terms from a vocabulary |
theme
| Command | Usage |
|---|---|
| theme:download | テーマをダウンロード |
| theme:install | テーマをインストールする |
| theme:path | テーマの相対パスまたは絶対パスを返す |
| theme:uninstall | テーマをアンインストールする |
update
| Command | Usage |
|---|---|
| update:entities | エンティティの更新を適用する |
| update:execute | Update N 関数を実行する |
user
| Command | Usage |
|---|---|
| user:create | Create users for the application |
| user:delete | ユーザーを削除 |
| user:login:clear:attempts | アカウントのログイン試行履歴をクリア |
| user:login:url | ワンタイムログインURLを生成する |
| user:password:hash | プレーンテキストのパスワードからハッシュ値を生成 |
| user:password:reset | 指定したユーザーのパスワードをリセットする |
| user:role | ユーザーの役割を追加・削除する |
| user:unblock | Unblock a specific user. |
views
| Command | Usage |
|---|---|
| views:disable | Viewsを無効化する |
| views:enable | Viewsを有効化する |