Edit

Edit a Drive file in place with a local editor.

Downloads the file, opens it in your editor, and re-uploads it when you save and close, only if the contents changed.

URL formats:

Studios: lit://<owner>/<teamspace>/studios/<studio-name>/<path> Teamspace drives: lit://<owner>/<teamspace>/uploads/<path> Current teamspace (relative): lit:///<resource-root>/<path>

Usage:

lightning edit [OPTIONS] PATH

Arguments

Name

Type

Required

Description

PATH

text

yes

No description provided.

Options

Option

Type

Required

Default

Description

--editor

TEXT

no

—

Editor command to launch. Defaults to the $EDITOR environment variable, or vi.

Examples

lightning edit lit://<owner>/<my-teamspace>/studios/<my-studio>/notes.txt
lightning edit lit:///studios/<my-studio>/notes.txt
lightning edit lit://<owner>/<my-teamspace>/uploads/config.yaml --editor "code -w"

Was this page helpful?

What went wrong?

↑↓ Navigate↵ Open⌘↵ New tabesc Close