Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

Add detailed docstring for CLI recover command (#9546)

Shamik897e0fe2a60a
diff --git a/marimo/_cli/cli.py b/marimo/_cli/cli.py
index fc618113c3..d30413b44f 100644
--- a/marimo/_cli/cli.py
+++ b/marimo/_cli/cli.py
@@ -1277,7 +1277,20 @@ def run(
)
[email protected](help="Recover a marimo notebook from JSON.")
+ help="""Recover a marimo notebook from a JSON file.
+
+When the frontend loses its connection to the kernel, marimo auto-saves
+unsaved cell changes to a JSON recovery file. Use this command to convert
+that JSON file back into a marimo notebook (.py), printing the recovered
+source to stdout.
+
+Example:
+
+ \b
+ marimo recover notebook_recovery.json > recovered_notebook.py
+"""
+)
@click.argument(
"name",
required=True,