Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Document zed CLI (#32879)
Kirill Bulatovd5472bc0ad48
diff --git a/docs/src/getting-started.md b/docs/src/getting-started.mdindex e9d06126795..5940c74b219 100644--- a/docs/src/getting-started.md+++ b/docs/src/getting-started.md@@ -50,6 +50,25 @@ Try it! Open the Command Palette and type in `new file`. You should see the listAny time you see instructions that include commands of the form `zed: ...` or `editor: ...` and so on that means you need to execute them in the Command Palette.+## CLI++Zed has a CLI, on Linux this should come with the distribution's Zed package (binary name can vary from distribution to distribution, `zed` will be used later for brevity).+For macOS, the CLI comes in the same package with the editor binary, and could be installed into the system with the `cli: install` Zed command which will create a symlink to the `/usr/local/bin/zed`.+It can also be built from source out of the `cli` crate in this repository.++Use `zed --help` to see the full list of capabilities.+General highlights:++- Opening another empty Zed window: `zed`++- Opening a file or directory in Zed: `zed /path/to/entry` (use `-n` to open in the new window)++- Reading from stdin: `ps axf | zed -`++- Starting Zed with logs in the terminal: `zed --foreground`++- Uninstalling Zed and all its related files: `zed --uninstall`+## Configure ZedTo open your custom settings to set things like fonts, formatting settings, per-language settings, and more, use the {#kb zed::OpenSettings} keybinding.