[Bug]: The templates documentation does not reflect what's happening during templates:generate command #914
Labels
issue: docs/instructions
Issues about incorrect instructions found on docs.strapi.io
severity: low
If the issue only affects a very niche base of users and an easily implemented workaround can solve
source: Dev Docs
PRs/issues targeting the Developer Docs
status: confirmed
Confirmed by a Strapi Team member or multiple community members
target: v4
Documentation PRs/issues targeting content from docs.strapi.io (main branch).
Link to the documentation page or resource
https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/installation/templates.html
Describe the bug
There are several discrepancies with the templates documentation and what the
templates:generate
command is actually doing.When I run
yarn strapi templates:generate blog
, the folder structure generated is not what is specified in the list of "allowed" files.I end up with:
Notice
admin
,src
are not listed in the docs as being allowed files.Also, after pushing to github and running the command
npx create-strapi-app blog001 --template https://github.com/rawestmoreland/strapi-template-blog
I get the error:
I had attempted the above command with both node 16 and node 14. Both
yarn
andnpx
Additional context
To repro:
yarn strapi templates:generate blog
yarn create strapi-app blog001 --template <github-template-url>
Suggested improvements or fixes
I think the documentation is perhaps old and pertains to strapi v3.
What is the proper way to create a template and then use that template after pushing to github?
Related issue(s)/PR(s)
No response
The text was updated successfully, but these errors were encountered: