LogoRobo.js

Robo CLI

Full command reference for the Robo.js CLI.

The Robo.js CLI provides commands for developing, building, deploying, and managing your project. All commands are run via npx robo (or your package manager's equivalent).

Global Options

These flags are available on most commands:

FlagAliasDescription
--silent-sSuppress all output
--verbose-vPrint additional debugging information
--help-hShow available options for the command
--version-VOutput the Robo.js version number

Running

robo dev

The primary way to run your Robo during development. Watches for file changes and automatically rebuilds, similar to nodemon. This command runs build behind the scenes and updates bot commands on each restart.

When running in a TTY, robo dev launches an interactive terminal where you can type / commands to inspect state, manage Flashcore, and more.

npx robo dev
FlagAliasDescription
--hmr-HEnable hot module replacement for handlers (experimental)
--instance-id-idSpecify the instance ID to use
--log-level-lSet the log level (debug, info, warn, error)
--mode-mSpecify the mode(s) to run in (dev, beta, prod, etc.)
--silent-sSuppress all output
--verbose-vPrint additional debugging information

robo start

Runs your Robo in production after running build. Use this when self-hosting instead of deploying to RoboPlay.

Like dev, this also launches an interactive terminal in TTY environments.

npx robo start
FlagAliasDescription
--instance-id-idSpecify the instance ID to use
--log-level-lSet the log level (debug, info, warn, error)
--mode-mSpecify the mode(s) to run in (dev, beta, prod, etc.)
--silent-sSuppress all output
--verbose-vPrint additional debugging information

Building

robo build

Prepares your project for production by compiling source files, generating a manifest, and registering any command updates. Run this before using start.

npx robo build
FlagAliasDescription
--dev-dBuild for development
--mode-mSpecify the mode(s) to build for
--silent-sSuppress all output
--verbose-vPrint additional debugging information
--watch-wWatch for changes and rebuild automatically

robo build plugin

Works similarly to build, but optimizes your source files to be published as a plugin via npm.

npx robo build plugin

Plugin Management

robo add

Installs a plugin from npm and registers it with your Robo. You can also install plugins from a local directory.

npx robo add @robojs/server@next
npx robo add @robojs/ai@next @robojs/cron@next
FlagAliasDescription
--force-fForcefully install and register packages
--no-seed-nsSkip seeding starter files from the plugin
--silent-sSuppress all output
--trigger-tSetup hook trigger context (add or create)
--verbose-vPrint additional debugging information
--yes-yAuto-accept seed files without prompting

robo remove

Uninstalls a plugin from your Robo and removes its config file.

npx robo remove @robojs/server@next
FlagAliasDescription
--force-fForcefully remove and unregister packages
--silent-sSuppress all output
--verbose-vPrint additional debugging information

robo sync

Syncs the Robo with the latest plugins and configurations. Useful after manually editing plugin configs or adding plugins without robo add.

npx robo sync
FlagAliasDescription
--silent-sSuppress all output
--verbose-vPrint additional debugging information

robo upgrade

Upgrades Robo.js and all installed plugins to the latest version.

npx robo upgrade
FlagAliasDescription
--force-fForcefully install updates
--no-self-check-nsSkip checking for Sage CLI updates
--silent-sSuppress all output
--verbose-vPrint additional debugging information

Hosting

robo deploy

Bundles your Robo's source files and deploys to RoboPlay.

npx robo deploy
FlagAliasDescription
--silent-sSuppress all output
--verbose-vPrint additional debugging information

robo login

Sign in to your RoboPlay account. Links the current project to a Robo Pod for deployment.

npx robo login

robo logout

Sign out of your RoboPlay account.

npx robo logout

robo cloud

Manage your cloud deployments on RoboPlay. This command has the following subcommands:

robo cloud status

Check your RoboPlay session status, Robo Pods, and connectivity.

npx robo cloud status
FlagAliasDescription
--credentials-credsOutput session file in base64 format (copies to clipboard)
--silent-sSuppress all output
--verbose-vPrint additional debugging information

robo cloud start

Start your linked Robo Pod.

npx robo cloud start

robo cloud stop

Stop your linked Robo Pod.

npx robo cloud stop

robo cloud logs

View your Robo's remote logs from RoboPlay.

npx robo cloud logs

Database

The robo db commands have been removed in v0.11. Database management is now available through terminal commands provided by @robojs/flashcore-extras. Use /db commands in the interactive terminal during development.

Introspection

robo cli

Inspect CLI commands and extensions registered by plugins and your project.

npx robo cli --inspect
npx robo cli --inspect build
FlagAliasDescription
--inspect-iShow all registered CLI commands and extensions

Pass a command name after --inspect to view details for that specific command.

Other

robo help

Display help for the CLI or a specific command.

npx robo help
npx robo build --help

Next Steps

On this page