It is easy to use the built-in commands . Before that, set the write permissions for the app/Controllers directory
command('make:controller API/Post')