@@ -31,7 +31,7 @@ runbook run runbook-name.ipynb
31
31
32
32
# Background
33
33
34
- ### What is a Runbook?
34
+ ## What is a Runbook?
35
35
A runbook is an executable document that combines:
36
36
- Clear markdown documentation
37
37
- Runnable code blocks
@@ -40,13 +40,13 @@ A runbook is an executable document that combines:
40
40
41
41
It's ideal for operations like encoding your Disaster Recovery Operations, spinning up a new cluster, or restoring from snapshots.
42
42
43
- ### When Should You Use This?
43
+ ## When Should You Use This?
44
44
- ✅ When you need ** semi-automated tools** with audit trails and safety checks
45
45
- ✅ When you want ** rapid iteration** on operational procedures with built-in rollback steps
46
46
- ✅ When you need something more powerful than shell scripts but don't want to build a full application
47
47
- ✅ When you want to make complex operations both ** safe and repeatable**
48
48
49
- ### Runbook Best Practices
49
+ ## Runbook Best Practices
50
50
1 . Structure your runbooks with:
51
51
- Clear purpose and summary
52
52
- Step-by-step descriptions
@@ -72,7 +72,7 @@ It's ideal for operations like encoding your Disaster Recovery Operations, spinn
72
72
1 . Depending on auditing needs, you can either commit the "runs" folder to your repo or only keep the "binder" folder committed.
73
73
1 . In case of strict auditing needs, we recommend you add auditing of commands in the local SDK as well as in your cloud provider
74
74
75
- ## Installation
75
+ # Installation
76
76
77
77
We recommend using [ uv] ( https://docs.astral.sh/uv/ ) for installing runbook as a cli tool. If you already use pipx, you can use that instead.
78
78
@@ -86,7 +86,7 @@ Or pin to a version
86
86
uv tool install git+https://github.com/zph/runbook.git@1.0.0-rc2
87
87
```
88
88
89
- ## CLI
89
+ # CLI
90
90
91
91
``` sh
92
92
Usage: runbook [OPTIONS] COMMAND [ARGS]...
@@ -98,16 +98,16 @@ Options:
98
98
--help Show this message and exit.
99
99
100
100
Commands:
101
- check Check language validity and formatting of a notebook .
102
- convert Convert an existing runbook to different format
103
- create Create a new runbook from [ template]
104
- diff Diff two notebooks
101
+ check Check the language validity and formatting of a runbook .
102
+ convert Convert a runbook between different formats
103
+ create Create a new runbook from a template
104
+ diff Compare two runbooks and show their differences
105
105
edit Edit an existing runbook
106
106
init Initialize a folder as a runbook repository
107
- list list runbooks
107
+ list List runbooks
108
108
plan Prepares the runbook for execution by injecting parameters.
109
109
review [Unimplemented] Entrypoint for reviewing runbook
110
- run Run a notebook
110
+ run Run a runbook
111
111
show Show runbook parameters and metadata
112
112
version Display version information about runbook
113
113
```
@@ -156,7 +156,7 @@ For development we use the following tools:
156
156
- [ hermit] ( https://hermit.dev/ ) to manage developement tool dependencies (see .hermit/bin)
157
157
- [ uv] ( https://docs.astral.sh/uv/ ) python package manager and cli runner (see pyproject.toml)
158
158
159
- Necessary deps can be seen in [ pyproject.toml] ( pyproject.toml ) and .hermit/bin
159
+ Necessary deps can be seen in pyproject.toml and .hermit/bin
160
160
161
161
Use .hermit/bin/activate-hermit to activate the environment.
162
162
0 commit comments