SharePoint / SharePoint/spfx

missing `--version` option

Open
#237 4 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

It would be cool to introduce a -v, --version option besides the -h, --help option to identify the tool version.
Besides, it is mentioned in the bug issue template to use it to get the tool version 😉

Use case

This option could be just useful to get the tool version.
Also it does not need to be an opion but it could be just a different command like spfx version

Alternatives considered

We could just run npm list -g --depth=0 and check the package version there

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

No files or tests are named. Start by locating the CLI entry point and the package version metadata, then trace how the existing -h, --help option is registered. Done means the tool reports its version through -v, --version or an equivalent version command, with the behavior covered by the project's relevant checks.

Written by the indexing model from the issue text.

Assessment

Tech stack
node.js, typescript
Domain
cli, developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.