Skip to content

Commands Reference

Complete reference for all Noorle CLI commands.

Command Structure

noorle [GLOBAL_COMMAND]
noorle plugin [SUBCOMMAND]

Global Commands

Core commands available at the root level:

noorle login

Authenticate with Noorle Platform using OAuth 2.0 device flow.

bash
noorle login

Process:

  1. Displays a device code and URL
  2. Opens browser automatically (or provides link)
  3. You authorize in browser
  4. CLI receives token and stores it

Token Storage: ~/.noorle_token

noorle logout

Clear stored authentication tokens.

bash
noorle logout

Effects:

  • Removes stored authentication tokens
  • Requires re-authentication for deployment

noorle check-update

Check if a newer version of the CLI is available.

bash
noorle check-update

noorle --help

Display help information about the CLI and available commands.

bash
noorle --help

noorle --version

Display the current version of the CLI.

bash
noorle --version

Plugin Subcommands

Plugin management commands under noorle plugin:

noorle plugin init

Initialize a new plugin project from a template.

bash
# Interactive template selection
noorle plugin init <project-name>

# Direct template specification
noorle plugin init <project-name> --template <template-name>

Arguments:

  • <project-name> - Name for your project (creates directory)

Options:

  • --template <name> - Skip interactive selection

Examples:

bash
noorle plugin init my-plugin --template rust
noorle plugin init weather-api --template python
noorle plugin init data-processor  # Interactive selection

noorle plugin list-templates

List all available plugin templates from the platform.

bash
noorle plugin list-templates

Output: Shows available templates with descriptions.

noorle plugin prepare

Install and check dependencies required for building.

bash
noorle plugin prepare

Installs:

  • wasmtime - WebAssembly runtime
  • wkg - WIT package manager
  • wasm-tools - WebAssembly utilities
  • Rust toolchain - Required for tools above

noorle plugin build

Build the current plugin project.

bash
noorle plugin build

Process:

  1. Runs the build.sh script from template
  2. Produces dist/plugin.wasm
  3. Validates WebAssembly output

Requirements:

  • Must be run in project directory
  • Dependencies installed (prepare)

noorle plugin pack

Create a .npack archive from built plugin.

bash
noorle plugin pack

Output: dist/plugin.npack

noorle plugin deploy

Upload plugin to the Noorle Platform.

bash
noorle plugin deploy

Requirements:

  • Authentication (noorle login)
  • Built plugin (noorle plugin build)

noorle plugin publish

Build and deploy plugin in one command.

bash
noorle plugin publish

Equivalent to:

bash
noorle plugin build
noorle plugin deploy

noorle plugin validate

Validate the plugin's YAML configuration.

bash
noorle plugin validate

Command Reference Table

CommandDescription
loginAuthenticate with platform
logoutClear authentication tokens
check-updateCheck for CLI updates
plugin initCreate new plugin from template
plugin list-templatesShow available templates
plugin prepareInstall/check dependencies
plugin buildBuild current plugin
plugin packCreate .npack archive
plugin deployUpload to platform
plugin publishBuild and deploy
plugin validateValidate YAML config
--helpDisplay help information
--versionShow CLI version

Environment Variables

VariablePurposeExample
RUST_LOGEnable debug outputRUST_LOG=debug noorle plugin build
NOORLE_INSTALLCustom install directoryNOORLE_INSTALL=/opt noorle

Exit Codes

  • 0 - Success
  • 1 - General error
  • 2 - Invalid arguments

Usage Patterns

Development Cycle

bash
# Initial setup
noorle login
noorle plugin init my-plugin --template rust
cd my-plugin
noorle plugin prepare

# Build and test
noorle plugin build

# Deploy when ready
noorle plugin deploy

# Or quick iteration
noorle plugin publish

Getting Help

bash
# General help
noorle --help

# Plugin commands help
noorle plugin --help

# Specific command help
noorle plugin init --help