Lunar CLI reference
File operations
Command Input string Example Additional info
Change directory/cd <directory>/cd PlansIf you want to navigate to a directory that has spaces in its name, write "<directory name>" in quotes. You can also use paths, e.g., ".." to navigate.
Create directory/mkdir <name>/mkdir ScriptsIf you want to create a directory that has spaces in its name, write "<directory name>" in quotes. You can also use paths, e.g., ".." to create a directory in a folder other than the currently open one.
Delete directory/removedir <directory>/removedir TestsIf you want to delete a directory that has spaces in its name, write "<directory name>" in quotes. You can also use paths, e.g., ".." to delete a directory in a folder other than the currently open one.
Rename directory/renamedir <oldName> <newName>/renamedir Scripts SpeechesIf you want to specify a folder name that has spaces, write "<directory name>" in quotes. You can also move a directory by specifying a path, e.g., "/renamedir Script ../Scripts".
Open document/opendoc <name>/opendoc "Summer Festival"If you want to open a document that has spaces in its name, write "<document name>" in quotes. You can also use paths, e.g., ".." to open a document from a folder that is not the currently open one.
Create document/mkdoc <name>/mkdoc CeremonyIf you want to create a file that has spaces in its name, write "<document name>" in quotes. You can also use paths, e.g., ".." to create a document in a folder other than the currently open one.
Delete document/removedoc <document>/removedoc TestsIf you want to delete a document that has spaces in its name, write "<document name>" in quotes. You can also use paths, e.g., ".." to delete a document in a folder other than the currently open one.
Rename document/renamedoc <oldName> <newName>/renamedoc Scripts SpeechesIf you want to specify a document name that has spaces, write "<document name>" in quotes. You can also move a document by specifying a path, e.g., "/renamedoc Script ../Scripts".
Save current document/savedocNo example given.No additional information.
Close current document/closedocNo example given.No additional information.
Reveal workspace in native file explorer/rwNo example given.No additional information.
Reveal current directory in native file explorer/rdirNo example given.No additional information.
Reveal current/target document in file explorer/rdoc <document (optional)>/rdoc CeremonyIf <document> is omitted, it will try to open the currently open file. Otherwise, it will open the <document>. You can also specify a path, e.g., "/rdoc ../Example" to reveal "Example" in the parent directory.
Changing settings
Command Input string Example Additional info
Clear settings:resetNo example given.This will reset all settings you changed to their defaults. Effects are only applied upon next app start.
Change theme:theme <theme>No example given.The only themes allowed are the ones you see in the settings panel of Lunar.
Toggle editor toolbar visibility:toolbarNo example given.No additional information.
Enable/disable info sections:infoNo example given.No additional information.
Enable/disable main menu buttons:menubtnsNo example given.No additional information.
Change the default file/folder size unit:sizeunit <unit>:sizeunit GBOnly the following unit sizes are allowed: `B`, `MB`, `GB`
Change app font:fontapp <font>:fontapp handwrittenOnly the following fonts are allowed: `sans-serif`, `serif`, `monospace`, `handwritten`
Change editor font:fonteditor <font>:fonteditor monospaceOnly the following fonts are allowed: `sans-serif`, `serif`, `monospace`, `handwritten`
Change editor look:editorlook <look>:editorlook full-widthOnly the following editor looks are allowed: `page-like`, `full-width`
Enable/disable editor look:fullscreenNo example given.No additional information.
Menu manipulation
Command Input string Example Additional info
Open/close sidebar.menuNo example given.No additional information.
Open/close shortcuts panel.shortcutsNo example given.No additional information.
Open/close file/folder metadata panel.metaNo example given.No additional information.
Open/close settings.configNo example given.No additional information.
Close command palette.closeNo example given.No additional information.