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

Support External Repository for Project Templates #98

Open
ntotten opened this issue Mar 2, 2020 · 4 comments
Open

Support External Repository for Project Templates #98

ntotten opened this issue Mar 2, 2020 · 4 comments
Labels
enhancement New feature or request

Comments

@ntotten
Copy link
Contributor

ntotten commented Mar 2, 2020

Support external samples repository like create-next-app. See: https://nextjs.org/blog/create-next-app

The idea would be we have a github repo salesforcedx-examples or something. Each example is in a folder example-1, example-2, etc. The user can then run the command:

sfdx force:project:create --template <name>

We could also make the example repo customizable so team's could create their own custom templates.

sfdx force:project:create --template <name> --repository https://github.com/myorg/templates
@jonathanwiesel
Copy link
Contributor

This would be great since many companies and projects require development environments tweaking, this will grant the required flexibility to do it.

@randi274
Copy link
Contributor

randi274 commented Aug 3, 2022

We now offer this feature! 🎉 Check out our documentation here for more details on implementing this for your project and your team: https://developer.salesforce.com/tools/vscode/en/user-guide/byotemplate

@randi274 randi274 closed this as completed Aug 3, 2022
@jclark-dot-org
Copy link

@randi274 That's great but it's not really what this request was asking for, which is the ability to create a new SFDX project from a template other than the two that ship with SFDX. While the linked item looks useful, sfdx is a command-line tool whereas VSCode is an IDE.

@randi274
Copy link
Contributor

randi274 commented Aug 5, 2022

Hey @jclark-dot-org thanks for the feedback! The custom templates feature should work for both VS Code and the CLI, as they both make use of this library (so the docs referring to how to set the config variables work in both cases!).

But after I saw your comment, I ran through some additional testing of projects specifically, and I'm seeing that projects isn't quite configurable yet (either within the default 3 of standard, empty, or analytics, or modifying each of them individually), so it's a good case to re-open here 👍 cheers!

@randi274 randi274 reopened this Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants