Skip to main content

CLI Reference

LanOnasis CLI Reference

Complete reference for the @lanonasis/cli v3.11.2 — Professional CLI for Memory as a Service (MaaS).

Installation

# Global installation (recommended)
npm install -g @lanonasis/cli

# Verify installation
onasis --version

Command Aliases

The primary command is onasis. The same binary is also exposed as:

  • lanonasis
  • memory (memory-focused operations)
  • maas (Memory as a Service operations)

All examples below use onasis, but any alias works.

Global Options

OptionDescription
-v, --versiondisplay version number
-V, --verboseenable verbose logging
--api-url <url>override API URL
--output <format>output format (json, table, yaml)
--no-mcpdisable MCP and use direct API
-h, --helpdisplay help for command

Command Index

CommandAliasesDescription
onasis initInitialize CLI configuration
onasis authAuthentication commands
onasis mcpMCP (Model Context Protocol) server operations
onasis mcp-serverMCP server initialization and management
onasis memoryMemory management commands
onasis replStart lightweight REPL session for memory operations
onasis topicTopic management commands
onasis configConfiguration management
onasis orgOrganization management
onasis api-keys🔐 Manage API keys securely with enterprise-grade encryption
onasis prescan🔍 Local filesystem prescan for secrets/PII before MIRA extraction. Reports are value-stripped — never exposes raw secrets.
onasis completionGenerate shell completion scripts
onasis dashboard🎛️ Manage React dashboard deployment and configuration
onasis documentation📚 Manage VitePress documentation deployment
onasis sdk🔧 Manage SDK packages and distribution
onasis api🌐 Manage REST API endpoints and services
onasis deploy🚀 Manage deployments and infrastructure
onasis service⚙️ Manage individual services and components
onasis statusShow overall system status
onasis whoamiShow the currently authenticated user profile
onasis healthComprehensive system health check
onasis docsOpen documentation in browser

Setup Commands

onasis init

Initialize CLI configuration

Options:

OptionDescription
-f, --forceoverwrite existing configuration
-h, --helpdisplay help for command

Authentication Commands

onasis auth

Authentication commands

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis auth loginLogin to your MaaS account
onasis auth logoutLogout from your account
onasis auth statusShow authentication status
onasis auth diagnoseDiagnose authentication issues

onasis auth login

OptionDescription
-e, --email <email>email address
-p, --password <password>password
-k, --vendor-key <key>vendor key for API access
-h, --helpdisplay help for command

onasis auth logout

OptionDescription
-h, --helpdisplay help for command

onasis auth status

OptionDescription
-h, --helpdisplay help for command

onasis auth diagnose

OptionDescription
-h, --helpdisplay help for command

Memory Commands

onasis memory

Memory management commands

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis memory createaddCreate a new memory entry
onasis memory save-sessionSave current session context (git branch/status + optional test summary) as a memory
onasis memory list-sessionsList saved CLI sessions (memories tagged session,cli by default)
onasis memory load-sessionLoad a saved session by memory ID (prints the saved session context)
onasis memory delete-sessionDelete a saved session by memory ID
onasis memory listlsList memory entries
onasis memory searchSearch memories using semantic search
onasis memory getshowGet detailed information about a memory
onasis memory updateUpdate a memory entry
onasis memory deletermDelete a memory entry
onasis memory statsShow memory statistics (admin only)
onasis memory intelligenceMemory intelligence operations
onasis memory behaviorBehavior pattern intelligence operations

onasis memory create

OptionDescription
-t, --title <title>memory title
-c, --content <content>memory content
--type <type>memory type (context, project, knowledge, reference, personal, workflow)
--tags <tags>comma-separated tags
--topic-id <id>topic ID
-i, --interactiveinteractive mode
--json <json>JSON payload (title, content, type/memory_type, tags[], topic_id)
--content-file <path>Read memory content from a file (overrides --content)
-h, --helpdisplay help for command

onasis memory save-session

OptionDescription
-t, --title <title>memory title (default: "Session summary")
--type <type>memory type (context, project, knowledge, reference, personal, workflow) (default: "project")
--tags <tags>comma-separated tags (default: "session,cli")
--test-summary <text>Optional test summary to include
-h, --helpdisplay help for command

onasis memory list-sessions

OptionDescription
-p, --page <page>page number (default: "1")
-l, --limit <limit>number of entries per page (default: "20")
--type <type>filter by memory type (default: "project")
--tags <tags>filter by tags (comma-separated) (default: "session,cli")
--sort <field>sort by field (created_at, updated_at, title, last_accessed) (default: "created_at")
--order <order>sort order (asc, desc) (default: "desc")
-h, --helpdisplay help for command

onasis memory load-session

OptionDescription
-h, --helpdisplay help for command

onasis memory delete-session

OptionDescription
-f, --forceskip confirmation
-h, --helpdisplay help for command

onasis memory list

OptionDescription
-p, --page <page>page number (default: "1")
-l, --limit <limit>number of entries per page (default: "20")
--type <type>filter by memory type
--tags <tags>filter by tags (comma-separated)
--user-id <id>filter by user ID (admin only)
--sort <field>sort by field (created_at, updated_at, title, last_accessed) (default: "created_at")
--order <order>sort order (asc, desc) (default: "desc")
-h, --helpdisplay help for command
OptionDescription
-l, --limit <limit>number of results (default: "20")
--threshold <threshold>similarity threshold (0-1) (default: "0.55")
--type <types>filter by memory types (comma-separated)
--tags <tags>filter by tags (comma-separated)
--fallback-mode <mode>fallback mode when semantic search returns no results or fails (auto, lexical, never) (default: "auto")
--no-fallbackdisable CLI lexical fallback when semantic search fails or returns no results
--fail-on-fallbackexit non-zero if CLI lexical fallback is used
--ciCI mode: disable fallback, emit JSON, and fail on backend search errors
--jsonemit machine-readable JSON output
-h, --helpdisplay help for command

onasis memory get

OptionDescription
-h, --helpdisplay help for command

onasis memory update

OptionDescription
-t, --title <title>new title
-c, --content <content>new content
--type <type>new memory type (context, project, knowledge, reference, personal, workflow)
--tags <tags>new tags (comma-separated)
-i, --interactiveinteractive mode
-h, --helpdisplay help for command

onasis memory delete

OptionDescription
-f, --forceskip confirmation
-h, --helpdisplay help for command

onasis memory stats

OptionDescription
-h, --helpdisplay help for command

onasis memory intelligence

OptionDescription
-h, --helpdisplay help for command

onasis memory behavior

OptionDescription
-h, --helpdisplay help for command

Topics Commands

onasis topic

Topic management commands

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis topic createaddCreate a new topic
onasis topic listlsList topics
onasis topic getshowGet detailed information about a topic
onasis topic updateUpdate a topic
onasis topic deletermDelete a topic

onasis topic create

OptionDescription
-n, --name <name>topic name
-d, --description <description>topic description
-c, --color <color>topic color (hex format)
--icon <icon>topic icon
--parent <parentId>parent topic ID
-i, --interactiveinteractive mode
-h, --helpdisplay help for command

onasis topic list

OptionDescription
-h, --helpdisplay help for command

onasis topic get

OptionDescription
-h, --helpdisplay help for command

onasis topic update

OptionDescription
-n, --name <name>new name
-d, --description <description>new description
-c, --color <color>new color (hex format)
--icon <icon>new icon
-i, --interactiveinteractive mode
-h, --helpdisplay help for command

onasis topic delete

OptionDescription
-f, --forceskip confirmation
-h, --helpdisplay help for command

Configuration Commands

onasis config

Configuration management

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis config setSet configuration value
onasis config getGet configuration value
onasis config showShow current configuration
onasis config listList all configuration options
onasis config set-urlSet API URL
onasis config testTest connection to API
onasis config discoverDiscover service endpoints
onasis config endpointsShow current service endpoints
onasis config set-endpointSet manual endpoint override (auth|memory|mcp-http|mcp-ws|mcp-sse)
onasis config clear-overridesClear manual endpoint overrides and rediscover services
onasis config validateValidate configuration and check for issues
onasis config backupCreate a backup of current configuration
onasis config restoreRestore configuration from backup
onasis config resetReset all configuration

onasis config set

OptionDescription
-h, --helpdisplay help for command

onasis config get

OptionDescription
-h, --helpdisplay help for command

onasis config show

OptionDescription
-h, --helpdisplay help for command

onasis config list

OptionDescription
-h, --helpdisplay help for command

onasis config set-url

OptionDescription
-h, --helpdisplay help for command

onasis config test

OptionDescription
-h, --helpdisplay help for command

onasis config discover

OptionDescription
-v, --verboseshow detailed discovery information
-h, --helpdisplay help for command

onasis config endpoints

OptionDescription
-h, --helpdisplay help for command

onasis config set-endpoint

OptionDescription
-h, --helpdisplay help for command

onasis config clear-overrides

OptionDescription
-h, --helpdisplay help for command

onasis config validate

OptionDescription
-v, --verboseshow detailed validation information
--repairautomatically repair common issues
-h, --helpdisplay help for command

onasis config backup

OptionDescription
-h, --helpdisplay help for command

onasis config restore

OptionDescription
-h, --helpdisplay help for command

onasis config reset

OptionDescription
-f, --forceskip confirmation
-h, --helpdisplay help for command

Organization Commands

onasis org

Organization management

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis org infoShow organization information
onasis org membersList organization members (admin only)
onasis org usageShow organization usage statistics

onasis org info

OptionDescription
-h, --helpdisplay help for command

onasis org members

OptionDescription
-h, --helpdisplay help for command

onasis org usage

OptionDescription
-h, --helpdisplay help for command

API Keys Commands

onasis api-keys

🔐 Manage API keys securely with enterprise-grade encryption

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis api-keys createCreate a new API key
onasis api-keys listlsList API keys
onasis api-keys getGet details of a specific API key
onasis api-keys updateUpdate an API key
onasis api-keys deletermDelete an API key
onasis api-keys projects📁 Manage API key projects and organization
onasis api-keys mcp🤖 Model Context Protocol (MCP) - Secure AI agent access
onasis api-keys analyticsView API key usage analytics and security events

onasis api-keys create

OptionDescription
-n, --name <name>API key name
-d, --description <description>API key description (optional)
--access-level <level>Access level (public, authenticated, team, admin, enterprise) (default: "team")
--key-context <context>Optional memory context (personal, team, enterprise)
--expires-in-days <days>Expiration in days (default: 365) (default: "365")
--scopes <scopes>Comma-separated scopes (optional)
--interactiveInteractive mode
-h, --helpdisplay help for command

onasis api-keys list

OptionDescription
--allInclude inactive keys
--jsonOutput as JSON
-h, --helpdisplay help for command

onasis api-keys get

OptionDescription
--jsonOutput as JSON
-h, --helpdisplay help for command

onasis api-keys update

OptionDescription
-n, --name <name>New name
-d, --description <description>New description
--access-level <level>New access level
--expires-in-days <days>Set a new expiry in days
--clear-expiryRemove the current expiry
--scopes <scopes>Replace scopes with a comma-separated list
--interactiveInteractive mode
-h, --helpdisplay help for command

onasis api-keys delete

OptionDescription
-f, --forceSkip confirmation
-h, --helpdisplay help for command

onasis api-keys projects

OptionDescription
-h, --helpdisplay help for command

onasis api-keys mcp

OptionDescription
-h, --helpdisplay help for command

onasis api-keys analytics

OptionDescription
-h, --helpdisplay help for command

Prescan Commands

onasis prescan

🔍 Local filesystem prescan for secrets/PII before MIRA extraction. Reports are value-stripped — never exposes raw secrets.

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis prescan runRun prescan on a directory
onasis prescan statusShow last prescan state and statistics

onasis prescan run

OptionDescription
--exclude <patterns...>Glob patterns to exclude (e.g. --exclude node_modules --exclude .git)
--jsonOutput machine-parseable JSON summary
--saveWrite report to ~/.lanonasis/security/prescan/
--fail-on <threshold>Exit non-zero if classification meets threshold: none, quarantined, or flagged
--ciCI mode: equivalent to --fail-on quarantined --json
-h, --helpdisplay help for command

onasis prescan status

OptionDescription
-h, --helpdisplay help for command

MCP Commands

onasis mcp

MCP (Model Context Protocol) server operations

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis mcp connectConnect to MCP server (local, remote, or WebSocket)
onasis mcp disconnectDisconnect from MCP server
onasis mcp statusShow MCP connection status
onasis mcp toolsList available MCP tools
onasis mcp callCall an MCP tool directly
onasis mcp memoryMemory operations via MCP
onasis mcp configConfigure MCP preferences
onasis mcp startStart MCP server for external clients (Claude Desktop, Cursor, etc.)
onasis mcp diagnoseDiagnose MCP connection issues

onasis mcp connect

OptionDescription
-l, --localConnect to local MCP server
-r, --remoteConnect to remote MCP server (mcp.lanonasis.com)
-w, --websocketConnect using WebSocket mode for enterprise users
-s, --server <path>Local MCP server path
-u, --url <url>Remote/WebSocket server URL
--local-args <args>Extra args for local server (e.g., "--stdio --port 3001")
-h, --helpdisplay help for command

onasis mcp disconnect

OptionDescription
-h, --helpdisplay help for command

onasis mcp status

OptionDescription
-h, --helpdisplay help for command

onasis mcp tools

OptionDescription
-h, --helpdisplay help for command

onasis mcp call

OptionDescription
-a, --args <json>Tool arguments as JSON
-h, --helpdisplay help for command

onasis mcp memory

OptionDescription
-h, --helpdisplay help for command

onasis mcp config

OptionDescription
--prefer-websocketPrefer WebSocket MCP connection (recommended for production)
--prefer-remotePrefer remote MCP server (REST/SSE mode)
--prefer-localPrefer local MCP server (development only)
--autoAuto-detect best connection mode
-h, --helpdisplay help for command

onasis mcp start

OptionDescription
--transport <type>Transport: stdio (default), ws, http, sse (default: "stdio")
--port <number>Port for ws/http/sse (default: "3009")
--host <address>Host address (default: "127.0.0.1")
-h, --helpdisplay help for command

onasis mcp diagnose

OptionDescription
-v, --verboseshow detailed diagnostic information
-h, --helpdisplay help for command

onasis mcp-server

MCP server initialization and management

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis mcp-server initInitialize MCP server configuration

onasis mcp-server init

OptionDescription
-h, --helpdisplay help for command

Completion Commands

onasis completion

Generate shell completion scripts

Options:

OptionDescription
-h, --helpdisplay help for command

System Commands

onasis repl

Start lightweight REPL session for memory operations

Options:

OptionDescription
--mcpUse MCP mode
--api <url>Override API URL
--ai-router <url>Override AI router URL
--token <token>Authentication token
--model <model>Model label/override for concierge responses
--config <path>Path to a custom repl-config.json
-h, --helpdisplay help for command

onasis status

Show overall system status

Options:

OptionDescription
-h, --helpdisplay help for command

onasis whoami

Show the currently authenticated user profile

Options:

OptionDescription
-h, --helpdisplay help for command

onasis health

Comprehensive system health check

Options:

OptionDescription
--verboseshow detailed health information
-h, --helpdisplay help for command

onasis docs

Open documentation in browser

Options:

OptionDescription
-h, --helpdisplay help for command

Platform Management Commands

onasis dashboard

🎛️ Manage React dashboard deployment and configuration

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis dashboard statusCheck dashboard deployment status
onasis dashboard logsView dashboard deployment logs

onasis dashboard status

OptionDescription
-h, --helpdisplay help for command

onasis dashboard logs

OptionDescription
-h, --helpdisplay help for command

onasis documentation

📚 Manage VitePress documentation deployment

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis documentation statusCheck documentation deployment status
onasis documentation buildTrigger documentation rebuild

onasis documentation status

OptionDescription
-h, --helpdisplay help for command

onasis documentation build

OptionDescription
-h, --helpdisplay help for command

onasis sdk

🔧 Manage SDK packages and distribution

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis sdk statusCheck SDK deployment status
onasis sdk versionsList all available SDK versions

onasis sdk status

OptionDescription
-h, --helpdisplay help for command

onasis sdk versions

OptionDescription
-h, --helpdisplay help for command

onasis api

🌐 Manage REST API endpoints and services

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis api statusCheck REST API health and endpoints
onasis api endpointsList all available API endpoints

onasis api status

OptionDescription
-h, --helpdisplay help for command

onasis api endpoints

OptionDescription
-h, --helpdisplay help for command

onasis deploy

🚀 Manage deployments and infrastructure

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis deploy statusCheck overall deployment status
onasis deploy healthComprehensive health check of all services

onasis deploy status

OptionDescription
-h, --helpdisplay help for command

onasis deploy health

OptionDescription
-h, --helpdisplay help for command

onasis service

⚙️ Manage individual services and components

Options:

OptionDescription
-h, --helpdisplay help for command

Subcommands:

SubcommandAliasesDescription
onasis service listList all available services
onasis service restartRestart a specific service

onasis service list

OptionDescription
-h, --helpdisplay help for command

onasis service restart

OptionDescription
-h, --helpdisplay help for command

Common Examples

# Initialize the CLI
onasis init

# Authenticate
onasis auth login

# Check system health
onasis health

# Create a memory
onasis memory create --title "Note" --content "..." --type knowledge

# Search memories
onasis memory search "query text" --limit 10

# List API keys
onasis api-keys list

# List MCP tools
onasis mcp tools