Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue during creation of javascript http function #363

Closed
valereColleville opened this issue Jan 26, 2018 · 1 comment
Closed

Issue during creation of javascript http function #363

valereColleville opened this issue Jan 26, 2018 · 1 comment

Comments

@valereColleville
Copy link

I work with the function CLI for few mounths now and everything was fine. But somehow now I am not able to create a new javascript function with the CLI anymore. This is very anoying because I have to teach all the team how to manage and develop this in azure. I absolutly need to create function CLI to be sure that everyone manages the creation in the same way.

Here's my command line:
func new --language JavaScript --template HttpTrigger --name FUNC_NAME

That's the CLI return:

Select a language: JavaScript
Select a template: HttpTrigger
I can't find template "HttpTrigger" in "JavaScript"

Has something changed since I have started to use the CLI? Am I doing something wrong?

@ahmelsayed
Copy link
Contributor

Yep, it looks like the template names changed in this PR Azure/azure-functions-templates@624c76d#diff-2ee0b71cd67db09e4bb3e06f27321b27

so I guess the command now should be

 func new --language JavaScript --template "Http Trigger" --name FUNC_NAME

The cli pulls the templates based on a feed, that's based on that templates repo, so changes in the template names would cause a break here.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants