0.2.3 β€’ Published 12 months ago

@vlrmprjct/billomat-cli v0.2.3

Weekly downloads
-
License
MIT
Repository
github
Last release
12 months ago

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

node-current GitHub package.json version GitHub

Install

$ npm install -g @vlrmprjct/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
versionshow current version--check Check available package version @ npm
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]