zed-industries/zed · error

The `--system-specs` argument is not supported in the Zed CL

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

Error "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" thrown in zed-industries/zed.

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 bc538def45)

When it happens

Trigger: Thrown at crates/cli/src/main.rs:558 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of zed-industries/zed@bc538def45 (2026-08-16). Data as JSON: /api/errors/974061f8766ec833. Report an issue: GitHub.