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 init—Initialize CLI configuration
onasis auth—Authentication commands
onasis mcp—MCP (Model Context Protocol) server operations
onasis mcp-server—MCP server initialization and management
onasis memory—Memory management commands
onasis repl—Start lightweight REPL session for memory operations
onasis topic—Topic management commands
onasis config—Configuration management
onasis org—Organization 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 completion—Generate 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 status—Show overall system status
onasis whoami—Show the currently authenticated user profile
onasis health—Comprehensive system health check
onasis docs—Open 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 login—Login to your MaaS account
onasis auth logout—Logout from your account
onasis auth status—Show authentication status
onasis auth diagnose—Diagnose 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-session—Save current session context (git branch/status + optional test summary) as a memory
onasis memory list-sessions—List saved CLI sessions (memories tagged session,cli by default)
onasis memory load-session—Load a saved session by memory ID (prints the saved session context)
onasis memory delete-session—Delete a saved session by memory ID
onasis memory listlsList memory entries
onasis memory search—Search memories using semantic search
onasis memory getshowGet detailed information about a memory
onasis memory update—Update a memory entry
onasis memory deletermDelete a memory entry
onasis memory stats—Show memory statistics (admin only)
onasis memory intelligence—Memory intelligence operations
onasis memory behavior—Behavior 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 update—Update 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 set—Set configuration value
onasis config get—Get configuration value
onasis config show—Show current configuration
onasis config list—List all configuration options
onasis config set-url—Set API URL
onasis config test—Test connection to API
onasis config discover—Discover service endpoints
onasis config endpoints—Show current service endpoints
onasis config set-endpoint—Set manual endpoint override (auth|memory|mcp-http|mcp-ws|mcp-sse)
onasis config clear-overrides—Clear manual endpoint overrides and rediscover services
onasis config validate—Validate configuration and check for issues
onasis config backup—Create a backup of current configuration
onasis config restore—Restore configuration from backup
onasis config reset—Reset 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 info—Show organization information
onasis org members—List organization members (admin only)
onasis org usage—Show 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 create—Create a new API key
onasis api-keys listlsList API keys
onasis api-keys get—Get details of a specific API key
onasis api-keys update—Update 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 analytics—View 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 run—Run prescan on a directory
onasis prescan status—Show 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 connect—Connect to MCP server (local, remote, or WebSocket)
onasis mcp disconnect—Disconnect from MCP server
onasis mcp status—Show MCP connection status
onasis mcp tools—List available MCP tools
onasis mcp call—Call an MCP tool directly
onasis mcp memory—Memory operations via MCP
onasis mcp config—Configure MCP preferences
onasis mcp start—Start MCP server for external clients (Claude Desktop, Cursor, etc.)
onasis mcp diagnose—Diagnose 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 init—Initialize 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 status—Check dashboard deployment status
onasis dashboard logs—View 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 status—Check documentation deployment status
onasis documentation build—Trigger 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 status—Check SDK deployment status
onasis sdk versions—List 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 status—Check REST API health and endpoints
onasis api endpoints—List 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 status—Check overall deployment status
onasis deploy health—Comprehensive 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 list—List all available services
onasis service restart—Restart 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