
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
next-utils-cli
Advanced tools
Streamline route, page, and component creation in the new Next.js App router with the next-utils CLI tool.
Next Utils CLI is a command-line tool exclusively designed for the new Next.js App router, streamlining the creation of routes, pages, components, and server actions in your Next.js application. It now detects your Next.js version at runtime, unlocking App Router niceties introduced in v15 and v16 such as cache-aware templates and Partial Prerendering helpers.
'use cache' directives and cacheLife presets when the project is running Next.js 16 with Cache Components enabled.init command and optionally toggle cacheComponents / the React Compiler.clean-home-page command.You can install Next Utils CLI globally using npm:
npm install -g next-utils-cli
To use Next Utils CLI, simply run the desired command:
next-utils page
next-utils route
next-utils component
next-utils clean-home-page
next-utils init
next-utils action
On Next.js 16 projects, prompts will offer optional cache directives ('use cache') and cacheLife presets once cacheComponents is enabled. Layouts remain cache-free by default so you can opt in manually when appropriate.
pageGenerate a new page in the App router.
routeGenerate a new route in the App router. Allows selecting multiple HTTP methods.
componentGenerate a new component with options to customize the type and rendering mode.
clean-home-pageRemoves boilerplate code from the default Next.js home page.
initCreates a next-utils-cli.json configuration file in the root of your project. This file will store your project-specific preferences for page, route, and component commands. When the detected Next.js version is 16 or later, the command can also enable cacheComponents and the React Compiler by patching your next.config.* file.
actionGenerate a new server action file to handle server-side logic seamlessly.
init command to generate a next-utils-cli.json file, which stores your project preferences, making subsequent commands faster and more consistent.init, opt into Cache Components and the React Compiler so page/component prompts expose cache directives.This project is licensed under the MIT License. See the LICENSE file for details.
Contributions are welcome! If you have ideas for improvements or encounter issues, please open an issue or submit a pull request.
Fork the Repository: Click the "Fork" button on the GitHub page to create your copy of the project.
Clone Your Fork: In your terminal, run the following command, replacing [your-username] with your GitHub username:
git clone https://github.com/[your-username]/next-utils-cli.git
Install Dependencies:
npm install
Make Changes: Create a new branch for your changes, make improvements or fixes, and commit your work:
git checkout -b my-fix
# or
git switch -c my-fix
Run the Project:
Run the following command to make sure project is running properly:
npm run next-utils -- -h
If you want to test in another directory:
npm run build -- test
npm link
# In your test directory
npm link next-utils-cli
# Then run the command
next-utils [command]
Need a sandbox app? The repository ignores /tester, so you can scaffold a Next.js project locally for experiments:
mkdir tester
cd tester
npx create-next-app@latest test --ts --app --src-dir --use-npm --no-git
cd test
npm link next-utils-cli
Add Tests (if necessary) and Run Them:
npm run test
Push Your Changes to GitHub: Commit your changes and push them to GitHub. Then, open a pull request against the main branch.
git add .
git commit -m "Fix: Describe your fix or feature"
FAQs
Streamline route, page, and component creation in the new Next.js App router with the next-utils CLI tool.
We found that next-utils-cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.