zed-industries/zed · info · anyhow::Error
The `--system-specs` argument is not supported in the Zed…
Error message
The `--system-specs` argument is not supported in the Zed CLI, only on Zed binary.
To retrieve the system specs on the command line, run the following command:
{} --system-specs What it means
`--system-specs` (machine/system info for debugging or support) is implemented in the main Zed binary, not in the `cli` shim. When the `zed` CLI is invoked with `--system-specs`, it refuses and prints this guidance, including the exact path of the real binary (`app.path()`) to run instead. This is a deliberate usage redirect, not a malfunction.
Solutions
- Run the command the error prints: `<path-to-zed-binary> --system-specs` (the path shown is the resolved app/zed binary location).
- On macOS, invoke the bundled binary directly, e.g. `/Applications/Zed.app/Contents/MacOS/zed --system-specs`.
- Ensure `app.path()` resolved correctly — if the printed path looks wrong, the CLI/install linkage may be broken; reinstall via the app.
Example fix
# before zed --system-specs # error: not supported in the Zed CLI # after: run the actual Zed binary the message points to /Applications/Zed.app/Contents/MacOS/zed --system-specs # macOS ~/.local/bin/zed --system-specs # Linux full binary install
Defensive patterns
Strategy: validation
Validate before calling
// If you ship the cli binary and need system specs, resolve the real binary first
let is_cli_only = std::env::current_exe()
.map(|p| p.ends_with("cli"))
.unwrap_or(false);
if args.system_specs && is_cli_only {
println!("run instead: {} --system-specs", real_zed_path.display());
return Ok(());
} Try / catch
match run(args) {
Err(err) if err.to_string().contains("--system-specs") => {
// informational redirect: surface the suggested command, exit 0/2 accordingly
}
result => result?,
} Prevention
- Run `--system-specs` against the Zed app binary, not the cli shim.
- Scripts should detect which binary they invoke before passing app-only flags.
When it happens
Trigger: Running `zed --system-specs` where `zed` is the small CLI launcher binary (e.g., installed via `cli install` on Linux/macOS) rather than the full editor binary.
Common situations: Users following support/debugging instructions that mention `--system-specs` while having only the CLI shim on their PATH; scripts invoking `zed` generically.
Related errors
- Cargo.toml not found in current directory. Please run this…
- Command failed with status
- Could not determine app path for
- Current directory does not appear to be a workspace root…
- failed to create archive.tar.gz
AI-assisted analysis of zed-industries/zed@f4178619ac (2026-08-20).
Data as JSON: /api/errors/974061f8766ec833.
Report an issue: GitHub.
Appendix: source
Thrown at crates/cli/src/main.rs:558
cmd.set_bin_name(file_name);
cmd.build();
crate::completions::main(&cmd, shell);
return Ok(());
}
if args.version {
println!("{}", app.zed_version_string());
return Ok(());
}
if args.system_specs {
let path = app.path();
let msg = [
"The `--system-specs` argument is not supported in the Zed CLI, only on Zed binary.",
"To retrieve the system specs on the command line, run the following command:",
&format!("{} --system-specs", path.display()),
];
anyhow::bail!(msg.join("\n"));
}
#[cfg(all(
any(target_os = "linux", target_os = "macos"),
not(feature = "no-bundled-uninstall")
))]
if args.uninstall {
static UNINSTALL_SCRIPT: &[u8] = include_bytes!("../../../script/uninstall.sh");
let tmp_dir = tempfile::tempdir()?;
let script_path = tmp_dir.path().join("uninstall.sh");
fs::write(&script_path, UNINSTALL_SCRIPT)?;
use std::os::unix::fs::PermissionsExt as _;
fs::set_permissions(&script_path, fs::Permissions::from_mode(0o755))?;
let status = std::process::Command::new("sh")
.arg(&script_path)View on GitHub (pinned to f4178619ac)