---
title: "Discussion on \"Magento 2 - Create Custom Command Line to Magento 2 CLI Console\" | Hashnode"
description: "Discussion on \"Magento 2 - Create Custom Command Line to Magento 2 CLI Console\". I'm trying to create an article to create custom command line, in summary what we need to do are:\n\nDefine command on di.xml.\n\nCreate new Console Class.\n\nCall the command\n\n\nDefine command on di.xml\nFirst we need to define the command on di.xml, this f..."
url: "https://hashnode.com/posts/magento-2-create-custom-command-line-to-magento-2-cli-console/63baee883b5b208d23bd8e85"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Magento 2 - Create Custom Command Line to Magento 2 CLI Console](https://fiko.me/magento-2-create-custom-command-line-to-magento-2-cli-console?utm_source=hashnode&utm_medium=feed)

I'm trying to create an article to create custom command line, in summary what we need to do are: Define command on di.xml. Create new Console Class. Call the command Define command on di.xml First we need to define the command on di.xml, this f...

Jan 8, 2023 · 2 min read · fiko.me  
Updated Sep 27, 2023  
Read the article

-   [#magento](https://hashnode.com/tag/magento)
-   [#magento-2](https://hashnode.com/tag/magento-2)
-   [#magento-development](https://hashnode.com/tag/magento-development)
-   [#command-line](https://hashnode.com/tag/command-line)

## Written by

[Fiko Borizqy](https://hashnode.com/@fikoborizqy)

@fikoborizqy · Yogyakarta, Indonesia

  
[View profile](https://hashnode.com/@fikoborizqy)

Magento 2 Developer

I wrote these tutorials for myself in future when I forget for the next steps.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
