Unverified Commit ca18f4ff authored by Sam Ko's avatar Sam Ko Committed by GitHub

docs(cli): fix next info section title and re-order (#61895)

## Changes

- Update section title from `Next Info` to `Info`
- Adds consistency with other section titles and fixes broken link →
https://github.com/vercel/next.js/blob/09a764d0fc5d143e401526153d73fab901844a38/packages/next/src/cli/next-info.ts#L100

Closes NEXT-2425
parent 03b652a9
...@@ -139,27 +139,7 @@ To configure the timeout values for the production Next.js server, pass `--keepA ...@@ -139,27 +139,7 @@ To configure the timeout values for the production Next.js server, pass `--keepA
npx next start --keepAliveTimeout 70000 npx next start --keepAliveTimeout 70000
``` ```
## Lint ## Info
`next lint` runs ESLint for all files in the `pages/`, `app/`, `components/`, `lib/`, and `src/` directories. It also
provides a guided setup to install any required dependencies if ESLint is not already configured in
your application.
If you have other directories that you would like to lint, you can specify them using the `--dir`
flag:
```bash filename="Terminal"
next lint --dir utils
```
## Telemetry
Next.js collects **completely anonymous** telemetry data about general usage.
Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information.
To learn more about Telemetry, [please read this document](https://nextjs.org/telemetry/).
## Next Info
`next info` prints relevant details about the current system which can be used to report Next.js bugs. `next info` prints relevant details about the current system which can be used to report Next.js bugs.
This information includes Operating System platform/arch/version, Binaries (Node.js, npm, Yarn, pnpm) and npm package versions (`next`, `react`, `react-dom`). This information includes Operating System platform/arch/version, Binaries (Node.js, npm, Yarn, pnpm) and npm package versions (`next`, `react`, `react-dom`).
...@@ -193,3 +173,23 @@ Relevant packages: ...@@ -193,3 +173,23 @@ Relevant packages:
This information should then be pasted into GitHub Issues. This information should then be pasted into GitHub Issues.
In order to diagnose installation issues, you can run `next info --verbose` to print additional information about system and the installation of next-related packages. In order to diagnose installation issues, you can run `next info --verbose` to print additional information about system and the installation of next-related packages.
## Lint
`next lint` runs ESLint for all files in the `pages/`, `app/`, `components/`, `lib/`, and `src/` directories. It also
provides a guided setup to install any required dependencies if ESLint is not already configured in
your application.
If you have other directories that you would like to lint, you can specify them using the `--dir`
flag:
```bash filename="Terminal"
next lint --dir utils
```
## Telemetry
Next.js collects **completely anonymous** telemetry data about general usage.
Participation in this anonymous program is optional, and you may opt-out if you'd not like to share any information.
To learn more about Telemetry, [please read this document](https://nextjs.org/telemetry/).
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment