0.2.30 • Published 1 year ago

@kapeta/kap v0.2.30

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

Kapeta command line utility

Introduces using kapeta through command line commands.

The purpose of kap is to make it simple to automate things either locally or on servers - as well as giving people comfortable with terminals a way to quickly perform certain actions.

Install / Update:

npm i @kapeta/kap -g

Use:

kap help

Remove

npm remove @kapeta/kap -g

Structure

The tool itself is built up of a series of "commands". Each command is its own module except for a few built-in core commands.

Installing or updating commands

It uses the NPM registry to install and update commands - and to install a new command you can simply do

kap install you-npm-command-module

or the short version

kap i you-npm-command-module

Upgrading is similar - simply write:

kap upgrade you-npm-command-module

Extending

To implement a command for kap we use @kapeta/kap-command and the module must then be published as an NPM module for kap to install it

kap expects a command property in the package.json file of the command. This command property should contain the name of your command - e.g.

{
  "name": "@kapeta/kap-command-codegen",
  "command": "codegen",
  ...
} 

Typically you'd want to not publish and download all the time during development. for that purpose you can navigate to the folder in which you are developing a command and run

kap link [command-name]

The optional "command-name" parameter is to override what is in the package.json file as mentioned before - or if nothing is there to specify one.

kap will then create a symlink - very similar to how npm link works - which allows it to find your local version of the command.

License

This project is licensed under the MIT License - see the LICENSE file for details

0.2.27

1 year ago

0.2.30

1 year ago

0.2.29

1 year ago

0.2.28

1 year ago

0.2.26

1 year ago

0.2.25

2 years ago

0.2.24

2 years ago

0.2.23

2 years ago

0.2.22

2 years ago

0.2.21

2 years ago

0.2.20

2 years ago

0.2.19

2 years ago

0.2.18

2 years ago

0.2.17

2 years ago

0.2.16

2 years ago

0.2.15

2 years ago

0.2.14

2 years ago

0.2.13

2 years ago

0.2.12

2 years ago

0.2.11

2 years ago

0.2.10

2 years ago

0.2.9

2 years ago

0.2.8

2 years ago

0.2.7

2 years ago

0.2.6

2 years ago

0.2.5

2 years ago

0.2.4

2 years ago

0.2.3

2 years ago

0.2.2

2 years ago

0.2.1

2 years ago