`--spfx-version` option does not seem to work for the ` list-templates` command
Open
Nobody has claimed this yet.
area: cli
good first issue
type: enhancement
- Dominant language
- TypeScript
- Stars
- 32
- Forks
- 18
- PR merge metrics
- No merged PRs in 30d
Description
Description
The help states that
But when I tried filtering list templates by version, it seemed to fail all the time.
Steps to reproduce
- Run
spfx list-templates --spfx-version 1.22
Expected behavior
should get only templates with SPFx version 1.22
Actual behavior
I get an error
CLI version
you know there is no --version option... anyway it is 0.1.0-pre.2
Node.js version
v22.14.0
Operating system
Windows
Template (if applicable)
No response
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the spfx list-templates --spfx-version 1.22 CLI entry point and reproduce the reported error with the stated CLI and Node.js versions. Trace how --spfx-version is parsed and applied to template listing; done means the command returns only templates for SPFx 1.22 without an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100