1# Command-line Interface
 2
 3Zed 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).
 4For 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`.
 5It can also be built from source out of the `cli` crate in this repository.
 6
 7Use `zed --help` to see the full list of capabilities.
 8General highlights:
 9
10- Opening another empty Zed window: `zed`
11
12- Opening a file or directory in Zed: `zed /path/to/entry` (use `-n` to open in the new window)
13
14- Reading from stdin: `ps axf | zed -`
15
16- Starting Zed with logs in the terminal: `zed --foreground`
17
18- Uninstalling Zed and all its related files: `zed --uninstall`