Skip to main content

marimo CLI

marimo provides a powerful command-line interface for creating, editing, running, and exporting reactive Python notebooks.

Global Options

These options can be used with any marimo command: -l, —log-level LEVEL - Set logging level
  • Choices: DEBUG, INFO, WARN, ERROR, CRITICAL
  • Default: WARN
-q, —quiet - Suppress standard output
  • Type: Flag
  • Default: False
-y, —yes - Automatic yes to prompts, running non-interactively
  • Type: Flag
  • Default: False
-d, —development-mode - Run in development mode; enables debug logs and server autoreload
  • Type: Flag
  • Default: False
-h, —help - Show help message and exit —version - Show version and exit

Main Commands

Interactive Commands

  • marimo edit - Create or edit notebooks in an interactive editor
  • marimo new - Create an empty notebook or generate from AI prompt
  • marimo run - Run a notebook as a read-only app
  • marimo tutorial - Open a tutorial notebook

Conversion & Export

  • marimo convert - Convert Jupyter notebooks, Markdown, or Python scripts to marimo
  • marimo export - Export notebooks to various formats (HTML, PDF, script, etc.)

Configuration

Utilities

  • marimo check - Check and format marimo files
  • marimo env - Print environment information for debugging
  • marimo recover - Recover a notebook from JSON
  • marimo shell-completion - Install shell completions

Quick Start Examples

Getting Help

For help with any command, use the --help flag:

Version Information

To check your marimo version: