Dubnium
v3
v3
  • Overview
  • API
    • Initialize
    • Manage
    • Get
    • Edit
    • Search
    • Miscellaneous
    • Middleware
    • Versioning
  • TEMPLATES
    • JSON
    • String
  • EXTENSIONS
    • Setup
    • Create
    • Find
  • OTHER
  • CLI
  • Events
  • Update Log
  • EXTERNAL LINKS
    • Need more help?
    • Report an Issue
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!

PreviousCreateNextEvents

Last updated 1 year ago

Was this helpful?

Install

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