Next.js - CLI info Command



The `info` command in Next.js is used to print environment and system information about the Next.js setup. This can be useful when reporting bugs to the Next.js github issues portal. The command provides details about your operating system, Node.js version, and Next.js version, among other things.

Next.js Info Command Syntax

Following is the syntax of the `info` command in Next.js CLI:

npx next info [options]

For example, npx next info --verbose command displays system information along with additional details for debugging.

Options of Info Command

Following are the options available for the `info` command:

Options Explanation
-h or --help Show all available options.
--verbose Displays additional information for debugging.

Show System Information in Next.js

To display system information in Next.js CLI, use the code below on terminal of Next.js project directory.

npx next info 

Output

The image below shows output of above command.

next.js-info-command

Show Debugging Information in Next.js

To display debugging information, you need to add verbose option to the above code. Following is syntax.

npx next info --verbose

Output

The output shows debugging information displayed.

next.js-info-command
Advertisements