[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$f3ep39mu4xvi6s":3},{"type":4,"solution":5},"solution",{"slug":6,"platform":7,"title":8,"description":9,"risk":10,"categorySlug":11,"tags":12,"verifiedAt":19,"updatedAt":19,"categoryName":20,"command":21,"undoCommand":22,"directAnswer":23,"explanation":24,"warning":22,"seoTitle":25,"seoDescription":26,"requirements":22,"macosSupport":27,"sources":28,"related":35},"install-xcode-command-line-tools","macos","Install Xcode Command Line Tools on Mac","Get git, clang and other dev tools without installing full Xcode.","low","developer",[13,16],{"slug":14,"name":15},"xcode","Xcode",{"slug":17,"name":18},"terminal","Terminal","2025-11-14T00:00:00.000Z","Developer","xcode-select --install",null,"Run the command below, then click Install in the dialog that appears. Download takes a few minutes; git and clang are ready afterwards.","Many developer tools (git, make, clang, Homebrew prerequisites) need Apple's compiler toolchain. This installs just the Command Line Tools (~1–2 GB) instead of the full Xcode IDE, and registers it as the active developer directory via xcode-select.","Install Xcode Command Line Tools — macOS Terminal","Install Apple's Command Line Tools (git, clang, make) on macOS without full Xcode, using one Terminal command.","macOS 10.11 El Capitan – 15 Sequoia",[29],{"url":30,"title":31,"publisher":32,"sourceType":33,"evidence":34,"retrievedAt":19},"https:\u002F\u002Fdeveloper.apple.com\u002Flibrary\u002Farchive\u002Ftechnotes\u002Ftn2339\u002F_index.html","TN2339: Building from the Command Line with Xcode","Apple","apple-doc","xcode-select --install opens a dialog to install the Command Line Tools package.",[36,51,62],{"slug":37,"platform":7,"title":38,"description":39,"risk":40,"categorySlug":41,"tags":42,"verifiedAt":50,"updatedAt":50},"flush-dns-cache","Flush the DNS cache on Mac","Clear cached DNS lookups when a site resolves to a stale IP address.","medium","network",[43,46,49],{"slug":44,"name":45},"dns","DNS",{"slug":47,"name":48},"diagnostics","Diagnostics",{"slug":17,"name":18},"2025-11-18T00:00:00.000Z",{"slug":52,"platform":7,"title":53,"description":54,"risk":10,"categorySlug":55,"tags":56,"verifiedAt":61,"updatedAt":61},"prevent-sleep-temporarily","Prevent your Mac from sleeping for one hour","Temporarily stop macOS from sleeping without changing Energy settings.","system",[57,60],{"slug":58,"name":59},"power","Power & Sleep",{"slug":17,"name":18},"2025-11-12T00:00:00.000Z",{"slug":63,"platform":7,"title":64,"description":65,"risk":10,"categorySlug":66,"tags":67,"verifiedAt":74,"updatedAt":74},"compress-folder-zip","Zip a folder on Mac from Terminal","Create a clean zip archive of any folder, preserving macOS metadata.","files",[68,71,72],{"slug":69,"name":70},"zip","Zip & Archives",{"slug":17,"name":18},{"slug":66,"name":73},"Files","2025-11-08T00:00:00.000Z"]