cypress-documentation
                                
                                 cypress-documentation copied to clipboard
                                
                                    cypress-documentation copied to clipboard
                            
                            
                            
                        archived legacy failing example used to demonstrate / explain `project` cli option
Subject
Guides > Command Line
Description
Concerns the page: ~~https://docs.cypress.io/guides/guides/command-line~~ moved to https://docs.cypress.io/app/references/command-line
both refer to https://github.com/cypress-io/cypress-test-nested-projects as the only explanation of the Cypress --project cli option:
To see this in action we've set up an example repo to demonstrate this here.
The repo cypress-io/cypress-test-nested-projects however is not suitable for this purpose. It:
- is based on legacy Cypress configuration using cypress.jsoninstead ofcypress.config.jsorcypress.config.ts
- shows a failing CircleCI badge
- is not configured for CircleCI
- contains incomplete instructions even for Cypress 9.x
- package.jsonand- package-lock.jsonare not aligned
- is archived
Suggestion
In ~~https://github.com/cypress-io/cypress-documentation/blob/main/docs/guides/guides/command-line.mdx~~ https://github.com/cypress-io/cypress-documentation/blob/main/docs/app/references/command-line.mdx:
- Remove the references to the archived, legacy https://github.com/cypress-io/cypress-test-nested-projects repo
- Replace by an explanation of the --projectoption
Possibly this could be aligned to the explanation of cypress open --global which says:
Opening Cypress in global mode is useful if you have multiple nested projects but want to share a single global installation of Cypress. In this case you can add each nested project to the Cypress in global mode, thus giving you a nice UI to switch between them.
- Incorrect use of the projectoption used as parameter incypress-io/github-actioncaused an issue in https://github.com/cypress-io/github-action/issues/1054
- It would be helpful to have an up-to-date and correct example of the usage of the projectoption or at least more complete documentation available.