Browse docs
On this page

obi edit

Open a resource in your editor and apply what you save.

obi edit opens one object in your editor and applies what you save.

Shell
obi edit TYPE NAME [-o json]

Run obi edit with no type to see every type you can edit.

Examples

Shell
obi edit alert payments-errors
obi edit dashboard prod-overview
obi edit retention                  # a once-per-workspace setting has no name
obi edit alert payments-errors -o json

The object opens as YAML in the same manifest form obi apply reads, or as JSON with -o json. Saving and closing the editor applies the change; closing it without changes does nothing. Renaming the object in the editor renames it rather than creating a new one.

The editor is $OBI_EDITOR, then $VISUAL, then $EDITOR, and vi if none is set.

Flags

FlagMeaning
-o jsonEdit as JSON instead of YAML.
--PARENT NAMEFor a type that belongs to another, the parent, such as --alert.