0.2.5 • Published 1 year ago

next-porto-cli v0.2.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

next-porto-cli

A cli for next.js to scaffold your application using porto architecture

Usage

$ npm install -g next-porto-cli
$ npc COMMAND
running command...
$ npc (--version|--version|-v)
next-porto-cli/0.2.5 darwin-x64 node-v16.18.0
$ npc --help [COMMAND]
USAGE
  $ npc COMMAND
...

Commands

npc create:project [PROJECTNAME]

Create a Next.js application with porto architechture.

USAGE
  $ npc create:project [PROJECTNAME] [-t] [-f]

ARGUMENTS
  PROJECTNAME  The name of the directory where the application will be installed.

FLAGS
  -f, --force       Force create a project on existing directory.
  -t, --typescript  Enable typescript support.

DESCRIPTION
  Create a Next.js application with porto architechture.

See code: dist/commands/create/project.ts

npc generate:container

Create a container

USAGE
  $ npc generate:container [-c <value> -s <value>] [-f]

FLAGS
  -c, --container=<value>  Name of the container.
  -f, --force              Override the existing container files
  -s, --section=<value>    [default: AppSection] Name of the application section.

DESCRIPTION
  Create a container

See code: dist/commands/generate/container.ts

npc generate:page

Create a page & page api files for container

USAGE
  $ npc generate:page [-p <value> (-c <value> -s <value>)] [-a] [-f]

FLAGS
  -a, --api                Will include api page files
  -c, --container=<value>  Container name
  -f, --force              Override the existing page files
  -p, --page=<value>       Page path
  -s, --section=<value>    (required) [default: AppSection] Section name

DESCRIPTION
  Create a page & page api files for container

See code: dist/commands/generate/page.ts

npc help [COMMAND]

Display help for npc.

USAGE
  $ npc help [COMMAND] [-n]

ARGUMENTS
  COMMAND  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for npc.

See code: @oclif/plugin-help