SharePoint / SharePoint/spfx

`--spfx-version` option does not seem to work for the ` list-templates` command

Open
#236 3 comments 0 reactions 0 assignees View on GitHub

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

Image

But when I tried filtering list templates by version, it seemed to fail all the time.

Image
Steps to reproduce
  1. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.