Modify "meteor create" command

Hi, how can I modify the meteor create command, what I want is to add one more command after the project is created, something like this

code . & exit

So when the creation is finished, the termina closes automatically and open the project just created in VS Code. This would greatly speed up my workflow.

PD: Sorry for my english

Hi @facku, welcome to the forums!

The CLI commands aren’t themselves extensible, so I would go with a bash function:

function meteor-create-and-open {
  meteor create $1
  cd $1
  code .
}

Add this to your .bash_profile and you can call it from the command line meteor-create-and-open

Of course, you can name it whatever you want, or set a short alias that calls it

2 Likes