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

Add --version cli args #4707

Merged
merged 3 commits into from
May 17, 2024
Merged

Add --version cli args #4707

merged 3 commits into from
May 17, 2024

Conversation

knolleary
Copy link
Member

Closes #4569

Adds --version cli arg that returns the node-red, node.js versions and OS info in one go:

$ node-red --version
Node-RED v4.0.0-beta.3-1
Node.js v18.18.2
Darwin 20.6.0 x64 LE

This is the same info we log on startup.

I know the original feature request wanted npm version as well, but that we can't get so easily without using child_process etc - and to be honest, npm version issues are much much rarer these days.

@knolleary knolleary requested a review from Steve-Mcl May 17, 2024 16:17
@knolleary knolleary linked an issue May 17, 2024 that may be closed by this pull request
Copy link
Contributor

@Steve-Mcl Steve-Mcl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Love it

@Steve-Mcl Steve-Mcl merged commit b76d692 into dev May 17, 2024
4 checks passed
@Steve-Mcl Steve-Mcl deleted the 4569-cli-version branch May 17, 2024 16:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Command Line Option to show versions
2 participants