Dubnium
v2
v2
  • Install
  • Overview
  • Initialize
  • Manage
  • Get
  • Modify
  • Templates
  • CLI
  • Events
  • Plugins
    • Create
  • Miscellaneous
  • Update Log
  • Need more help?
Powered by GitBook
On this page
  • Install
  • Install in your project
  • Install globally
  • Use
  • Commands
  • Example
  • Invoke Programmatically

Was this helpful?

CLI

Run Dubnium functions from your command-line!

PreviousTemplatesNextEvents

Last updated 2 years ago

Was this helpful?

Install

Dubnium CLI comes with all v2 versions

Install in your project

npm i dubnium@latest

Install globally

sudo npm i dubnium@latest -g

Use

If you installed it

dubnium <command>

If you installed it

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

Make sure the command is present when you run the file.

node index.js <command>
require("dubnium/cli")
globally
in your project