{"record":{"id":"974061f8766ec833","repo":"zed-industries/zed","slug":"the-system-specs-argument-is-not-supported-in","errorCode":null,"errorMessage":"The `--system-specs` argument is not supported in the Zed CLI, only on Zed binary.\nTo retrieve the system specs on the command line, run the following command:\n{} --system-specs","messagePattern":"The `--system-specs` argument is not supported in the Zed CLI, only on Zed binary\\.\nTo retrieve the system specs on the command line, run the following command:\n(.+?) --system-specs","errorType":"console","errorClass":"anyhow::Error","httpStatus":null,"severity":"info","filePath":"crates/cli/src/main.rs","lineNumber":558,"sourceCode":"        cmd.set_bin_name(file_name);\n        cmd.build();\n        crate::completions::main(&cmd, shell);\n        return Ok(());\n    }\n\n    if args.version {\n        println!(\"{}\", app.zed_version_string());\n        return Ok(());\n    }\n\n    if args.system_specs {\n        let path = app.path();\n        let msg = [\n            \"The `--system-specs` argument is not supported in the Zed CLI, only on Zed binary.\",\n            \"To retrieve the system specs on the command line, run the following command:\",\n            &format!(\"{} --system-specs\", path.display()),\n        ];\n        anyhow::bail!(msg.join(\"\\n\"));\n    }\n\n    #[cfg(all(\n        any(target_os = \"linux\", target_os = \"macos\"),\n        not(feature = \"no-bundled-uninstall\")\n    ))]\n    if args.uninstall {\n        static UNINSTALL_SCRIPT: &[u8] = include_bytes!(\"../../../script/uninstall.sh\");\n\n        let tmp_dir = tempfile::tempdir()?;\n        let script_path = tmp_dir.path().join(\"uninstall.sh\");\n        fs::write(&script_path, UNINSTALL_SCRIPT)?;\n\n        use std::os::unix::fs::PermissionsExt as _;\n        fs::set_permissions(&script_path, fs::Permissions::from_mode(0o755))?;\n\n        let status = std::process::Command::new(\"sh\")\n            .arg(&script_path)","sourceCodeStart":540,"sourceCodeEnd":576,"githubUrl":"https://github.com/zed-industries/zed/blob/f4178619acd0d47ea1f76a2025c42962c6d6638c/crates/cli/src/main.rs#L540-L576","documentation":"`--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.","triggerScenarios":"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.","commonSituations":"Users following support/debugging instructions that mention `--system-specs` while having only the CLI shim on their PATH; scripts invoking `zed` generically.","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."],"exampleFix":"# before\nzed --system-specs   # error: not supported in the Zed CLI\n\n# after: run the actual Zed binary the message points to\n/Applications/Zed.app/Contents/MacOS/zed --system-specs   # macOS\n~/.local/bin/zed --system-specs                        # Linux full binary install","handlingStrategy":"validation","validationCode":"// If you ship the cli binary and need system specs, resolve the real binary first\nlet is_cli_only = std::env::current_exe()\n    .map(|p| p.ends_with(\"cli\"))\n    .unwrap_or(false);\nif args.system_specs && is_cli_only {\n    println!(\"run instead: {} --system-specs\", real_zed_path.display());\n    return Ok(());\n}","typeGuard":null,"tryCatchPattern":"match run(args) {\n    Err(err) if err.to_string().contains(\"--system-specs\") => {\n        // informational redirect: surface the suggested command, exit 0/2 accordingly\n    }\n    result => result?,\n}","preventionTips":["Run `--system-specs` against the Zed app binary, not the cli shim.","Scripts should detect which binary they invoke before passing app-only flags."],"tags":["cli","system-specs","usage-error","flags"],"backgroundTag":"unsupported-cli-flag","analyzedSha":"f4178619acd0d47ea1f76a2025c42962c6d6638c","analyzedAt":"2026-08-20T19:29:52.058Z","contentChangedAt":"2026-08-20T19:29:52.058Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}