@pota/cli
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@pota/cli · version downloads

Create, extend and run CLI applications.

Install

npm install @pota/cli

Usage

If your project already has local commands or a scripts package setup. You can call those commands with the pota binary:

npx pota <insert-command>

unsure what commands are available?

run pota with the --help argument to see the loaded commands

npx pota --help

unsure what options are available for command <insert-command> ?

run pota <insert-command> with the --help argument to see available options for the command

npx pota <insert-command> --help

If your project does not have local commands or a scripts package setup. You can use one of the official scripts packages or define your own commands locally.

example using @pota/webpack-scripts

@pota/cli needs to to know where it can find its commands, this can be done by setting the pota key in your project's package.json:

npm pkg set pota="@pota/webpack-scripts"

example package.json

{
  "name": "pota-project",
  "pota": "@pota/webpack-scripts"
}

Documentation

Tips

  • The pota field in package.json supports arrays; you can define multiple command sources:
npm pkg set pota[0]="@pota/webpack-scripts" pota[1]="other-scripts"

Contributing

See CONTRIBUTING.md

License

Pota is MIT licensed.

Readme

Keywords

none

Package Sidebar

Install

npm i @pota/cli

Weekly Downloads

270

Version

2.0.1

License

MIT

Unpacked Size

10.1 kB

Total Files

13

Last publish

Collaborators

  • jessel
  • thanarie
  • psimk