0.0.40 • Published 1 year ago

blockctl v0.0.40

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

Blockware command line utility

Introduces using blockware through blockctl commands.

The purpose of blockctl 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:

npm i @blockware/blockctl -g

Use:

blockctl help

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

blockctl install you-npm-command-module

or the short version

blockctl i you-npm-command-module

Upgrading is similar - simply write:

blockctl upgrade you-npm-command-module

Extending

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

blockctl 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": "@blockware/blockctl-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

blockctl 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.

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

0.0.40

1 year ago

0.0.37

1 year ago

0.0.38

1 year ago

0.0.39

1 year ago

0.0.30

1 year ago

0.0.31

1 year ago

0.0.32

1 year ago

0.0.33

1 year ago

0.0.34

1 year ago

0.0.35

1 year ago

0.0.36

1 year ago

0.0.29

1 year ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.26

2 years ago

0.0.27

1 year ago

0.0.28

1 year ago

0.0.23

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.19

4 years ago

0.0.18

4 years ago

0.0.15

4 years ago

0.0.16

4 years ago

0.0.17

4 years ago

0.0.14

4 years ago

0.0.13

4 years ago

0.0.10

4 years ago

0.0.11

4 years ago

0.0.12

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.6

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago