zed/crates/cli
2026-07-29 19:04:26 +03:00
..
src Wrap up the cli removal draft 2026-07-29 19:04:26 +03:00
Cargo.toml Wrap up the cli removal draft 2026-07-29 19:04:26 +03:00
LICENSE-GPL chore: Change AGPL-licensed crates to GPL (except for collab) (#4231) 2024-01-24 00:26:58 +01:00
README.md Wrap up the cli removal draft 2026-07-29 19:04:26 +03:00

Cli

This crate contains the IPC protocol (CliRequest/CliResponse) spoken between the terminal client mode and the GUI mode of the zed binary.

There is no separate CLI binary: all CLI logic (argument handling, launching/contacting the editor, relaying output, --wait, etc.) lives in the zed binary itself, in crates/zed/src/cli_client.rs. Installed zed commands are symlinks (macOS/Linux) or thin zed.cmd/zed wrapper scripts (Windows) pointing at that binary.

Testing

Build the main zed binary and invoke it with CLI arguments directly:

cargo build -p zed
./target/debug/zed --wait path/to/file