{% import '@lib/di.twig' as di %} services: {{ service_name }}: class: Drupal\{{ machine_name }}\Command\{{ class }} {% if services %} arguments: [{{ di.arguments(services) }}] {% endif %} tags: - { name: console.command }