ASP NET CORE MVC – CLI Command like PHP Symfony

  .net-core, asp.net-core, c#, php, symfony

I have a question. Does ASP NET CORE support creating custom CLI commands? Like for example Command class from PHP Symfony.

https://symfony.com/doc/current/console.html

In Symfony you first create your own class that inherits from SymfonyComponentConsoleCommandCommand and then you can call created command like this:

php bin/console TestCommand

This is super useful for many cases – for example, business needs quick scripting.

Does ASP NET CORE MVC support this or not?

Source: Symfony Questions

LEAVE A COMMENT