cancel
Showing results for 
Search instead for 
Did you mean: 

Where can I get the list of Magento 2 CLI commands in files?

Where can I get the list of Magento 2 CLI commands in files?

Hello everyone,

 

Where can I get the list of all commands in Magento 2 files?

 

I know I can get the list of commands from CLI using

php bin/magento list

but where can I get this list in Magento core code?

 

I tried but didn't find any file which has the command as setup:upgrade

 

Can anybody help?

If you find my answer useful, Please click Kudos & Accept as Solution.
2 REPLIES 2

Re: Where can I get the list of Magento 2 CLI commands in files?

Hello @Mayur Bhuva,

 

You can find out setup:upgrade command in below location

 

File: vendor/magento/magento2-base/setup/src/Magento/Setup/Console/Command/UpgradeCommand.php

 

--
If my answer is useful, please Accept as Solution & give Kudos

Re: Where can I get the list of Magento 2 CLI commands in files?

I found my answer.

Actually, when I was searching for the command, I was finding the word "setup:ugprade".

 

I did a typo mistake Smiley Very Happy

But I found it later. I was trying to delete the question but didn't get any option to delete it.

 

Thank you for your reply.

 

If you find my answer useful, Please click Kudos & Accept as Solution.