Skip to content

CLI built in Go to support the creation of components boilerplate in the platform-kit-project

License

Notifications You must be signed in to change notification settings

william-tome/platform-kit-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PLATFORM KIT CLI

This is a Platform Kit CLI to support developers and contributors to create views, routes, and services with few commands.

DOWNLOAD

Download it for MacOS.

HOW TO USE

Move it to your /bin to make it available globaly or add it to your PATH.

$ chmod +x pk-cli
$ sudo cp pk-cli /usr/local/bin

To get help on available commands, run:

$ pk-cli -h

To get help on a specific command, run:

$ pk-cli [command] -h

To create a new view with all its dependencies:

Names should be kebab-case.

$ pk-cli create --name [view-name]

To create a new service with all its dependencies:

Names should be kebab-case.

$ pk-cli service --name [service-name]

By using the --append flag, you can add a new service to an existing directory:

Names should be kebab-case. Directory name is required.

$ pk-cli service -a --name [service-name] --dir [existing-directory-name]

To create a new route with its service dependency:

Names should be kebab-case. Service name is required.

$ pk-cli route --name [route-name] --service [service-name]

To create a new view with its dependencies:

Names should be kebab-case. If not informed, service and template will use default values.

$ pk-cli view --name [view-name] --service [service-name] --template [template-name]

About

CLI built in Go to support the creation of components boilerplate in the platform-kit-project

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages