Skip to content

Print specific component's version when using "cypress version" command #9214

@bahmutov

Description

@bahmutov

Building on top of #9180

Right now cypress version prints 4 versions

$ npx cypress version
Cypress package version: 6.0.0
Cypress binary version: 6.0.0
Electron version: 10.1.2
Bundled Node version: 12.16.3

To make checking versions in cypress-docker-images easier, it would be nice to be able to specify which version we want to print and print just that (even without newline)

Something like

$ npx cypress version --component package
6.0.0
$ npx cypress version --component binary
6.0.0
$ npx cypress version --component electron
10.1.2
$ npx cypress version --component node
12.16.3

Metadata

Metadata

Assignees

Labels

clitype: enhancementRequested enhancement of existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions