website icon indicating copy to clipboard operation
website copied to clipboard

CLI Init Directory Name

Open chusc123 opened this issue 5 years ago • 2 comments

Is there a way to change the directory name the template is dropped into? For example, when I type serverless init react-starter, it will always put it in the react-starter directory. If I want to drop the template into the myAwesomeWebsite directory instead, is there a way to modify the init command to do this or do I just have to rename the directory every time?

Sorry if this is answered somewhere else, I dug through the components documentation and there doesn't seem to be any other commands documented with the init command.

chusc123 avatar Jul 17 '20 00:07 chusc123

@chusc123 not yet, but I just passed this feedback internally and we've put it on the backlog. Thanks for suggesting 🙌

eahefnawy avatar Jul 17 '20 14:07 eahefnawy

@chusc123 implemented here https://github.com/serverless/components/pull/716

Will be in next release!

astuyve avatar Jul 21 '20 14:07 astuyve