0.1.0 β€’ Published 1 year ago

@billomat/cli v0.1.0

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

Billomat CLI πŸ‘ΎπŸ§ͺ ( Pre-Alpha )

node-current GitHub package.json version GitHub

Install

$ npm install -g @billomat/cli

Usage ( Available commands )

CommandDescriptionArguments
initInitialize cli
activityShow activity feed--watch Polls the activity feed, default 15sec--watch <interval> Set poll interval in milliseconds
searchSearch across documents--term <term*> Required*, provided search term--type <type> Type of document--size <int> Amount of listed results
resourceList documents--type <type*> Required*, type of document resource--page <int> page of resultset--size <int> Amount of listed results--sort <string> column sort (same as API)--desc Reverse column order direction Current available resources: Articles, Clients, Suppliers
helpThis command

CLI fun part and examples πŸ¦„

$ clib search --term something --type articles >> export.txt

$ clib search --term something >> export-1.txt && clib search --term otherthings >> export-2.txt

$ clib resource --type articles

$ clib resource --type clients --size 10 --page 2 --sort name

$ clib resource --type clients --size 10 --page 2 --sort name && clib resource --type articles --size 10 --page 3


Requirements

  • node v18.15.0

  • npm v9.5.0


Develop

$ git clone git@github.com:vlrmprjct/billomat.cli.git

$ cd billomat.cli

$ npm ci

API Url

To use the dev-version of the API set the following:

$ export NODE_ENV=development

Remove environment variable to use prod-version:

$ unset NODE_ENV

Make Executable

$ chmod +x cli.js

Usage

$ ./cli.js [command] [--args]

0.1.0

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago