CLI

Run Dubnium functions from your command-line!

Install

Install in your project

npm i dubnium@latest

Install globally

sudo npm i dubnium@latest -g

Use

If you installed it globally

dubnium <command>

If you installed it in your project

npx dubnium <command>

Commands

Commands are similar to the API. If you want to call a function on a Record, do not put get().func(). Instead, make the command just func and put the Record's tag as the first arg when prompted.

Example

The CLI will ask for a few values, and then the method will be run and the return value is logged to the console.

Invoke Programmatically

require("dubnium/cli")

Last updated

Was this helpful?