Skip to content

BartekDeveloper/nextcli-helper

Repository files navigation

NextJs CLI Helper Tool

Help

Help with basics of NextJS, such as:

  • Initialization of NextJS
  • Running NextJS
  • Creating pages
  • Creating components
    • server
    • client
  • Creating Server Actions

Configuration

Command Edit Config - creates a config file in the root of the project, also you can modify:

  • "pagePath" - Path for new pages (default: src/app)

  • "actionPath" - Path for new actions (default: src/actions)

  • "componentPath" - Path for new components (default: src/components)

  • "style" - Style for new components (default: tailwind) (@NOTE: FOR NOW DOES NOTHING)

  • "packageManager" - Package manager (default: pnpm, options: bun, deno, npm, pnpm)

Instalation

# Bun
bun install -g nextcli-helper

# Npm
npm install -g nextcli-helper

# Pnpm
pnpm add -g nextcli-helper

Usage

nextcli
# Opens Tool's cli
# (Use arrow keys to navigate choices)

Author

License

MIT

REPO

NPM