UNPKG

next-porto-cli

Version:

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

1 lines 2.25 kB
{"version":"0.2.5","commands":{"create:project":{"id":"create:project","description":"Create a Next.js application with porto architechture.","strict":false,"pluginName":"next-porto-cli","pluginAlias":"next-porto-cli","pluginType":"core","aliases":[],"flags":{"typescript":{"name":"typescript","type":"boolean","char":"t","description":"Enable typescript support.","required":false,"allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Force create a project on existing directory.","required":false,"allowNo":false}},"args":[{"name":"projectName","description":"The name of the directory where the application will be installed.","required":false}]},"generate:container":{"id":"generate:container","description":"Create a container","strict":false,"pluginName":"next-porto-cli","pluginAlias":"next-porto-cli","pluginType":"core","aliases":[],"flags":{"section":{"name":"section","type":"option","char":"s","description":"Name of the application section.","multiple":false,"default":"AppSection"},"container":{"name":"container","type":"option","char":"c","description":"Name of the container.","multiple":false,"dependsOn":["section"],"default":""},"force":{"name":"force","type":"boolean","char":"f","description":"Override the existing container files","required":false,"allowNo":false}},"args":[]},"generate:page":{"id":"generate:page","description":"Create a page & page api files for container","strict":false,"pluginName":"next-porto-cli","pluginAlias":"next-porto-cli","pluginType":"core","aliases":[],"flags":{"section":{"name":"section","type":"option","char":"s","description":"Section name","required":true,"multiple":false,"default":"AppSection"},"container":{"name":"container","type":"option","char":"c","description":"Container name","required":false,"multiple":false,"dependsOn":["section"]},"page":{"name":"page","type":"option","char":"p","description":"Page path","required":false,"multiple":false,"dependsOn":["container"]},"api":{"name":"api","type":"boolean","char":"a","description":"Will include api page files","required":false,"allowNo":false},"force":{"name":"force","type":"boolean","char":"f","description":"Override the existing page files","required":false,"allowNo":false}},"args":[]}}}