All apps/xcode-select

xcode-select

xcode-select

Selects the active developer directory for Xcode and command line tools.

Runs as xcode-select|macOS

Command form

ai-draft · 2 tasks · 4 fields

Show or change the active developer directory.

Opens the form; the finished command lands at your prompt, unrun
otty gui xcode-select
Manage the developer directoryExample values, fixed in this page — nothing here reaches a terminal
Basic
Print active path set by task
-p
TasksEach one presets the form for one job
Show active path
print_path
Install command line tools
install
ParametersOnly these flags are editable in the form
Print active path
boolean
-p--print-path
Switch to directory
Usually requires sudo.
path
-s--switch
Install command line tools
boolean
--install
Reset to default
boolean
-r--reset
SourcesEvery flag above is checked against these
fig
completion

github.com

Before it fills your prompt, Otty checks the installed xcode-select against its version. A form that does not match your version is not offered.