diff --git a/docs/codeql/codeql-cli/getting-started-with-the-codeql-cli.rst b/docs/codeql/codeql-cli/getting-started-with-the-codeql-cli.rst index c9bcbe5d6c5..1144c1c3e6c 100644 --- a/docs/codeql/codeql-cli/getting-started-with-the-codeql-cli.rst +++ b/docs/codeql/codeql-cli/getting-started-with-the-codeql-cli.rst @@ -18,9 +18,9 @@ structures. To get started quickly, we recommend adopting a relatively simple setup, as outlined in the steps below. If you use Linux, Windows, or macOS version 10.14 ("Mojave") or earlier, simply -follow the steps below. For macOS version 10.15 ("Catalina"), steps 1 and 4 are -slightly different---for further details, see the sections labeled **Information -for macOS "Catalina" users**. +follow the steps below. For macOS version 10.15 ("Catalina") or newer, steps 1 +and 4 are slightly different---for further details, see the sections labeled +**Information for macOS "Catalina" (or newer) users**. For information about installing the CodeQL CLI in a CI system to create results to display in GitHub as code scanning alerts, see @@ -66,13 +66,14 @@ Alternatively, you can download ``codeql.zip``, which contains the CLI for all s .. container:: name - **Information for macOS "Catalina" users** + **Information for macOS "Catalina" (or newer) users** - .. pull-quote:: macOS "Catalina" + .. pull-quote:: macOS "Catalina" (or newer) - If you use macOS version 10.15 ("Catalina"), you need to ensure that your web - browser does not automatically extract zip files. If you use Safari, - complete the following steps before downloading the CodeQL CLI zip archive: + If you use macOS version 10.15 ("Catalina"), version 11 ("Big Sur"), or the upcoming + version 12 ("Monterey"), you need to ensure that your web browser does not automatically + extract zip files. If you use Safari, complete the following steps before downloading + the CodeQL CLI zip archive: i. Open Safari. ii. From the Safari menu, select **Preferences...**. @@ -164,16 +165,17 @@ For example, if the path to your copy of the CodeQL repository is .. container:: name - **Information for macOS "Catalina" users** + **Information for macOS "Catalina" (or newer) users** .. pull-quote:: macOS "Catalina" - macOS "Catalina" users should run the following commands in the Terminal, - where ``${install_loc}`` is the path to the directory you created in step 2: + macOS "Catalina", "Big Sur", or "Monterey" users should run the following + commands in the Terminal, where ``${install_loc}`` is the path to the + directory you created in step 2: i. ``mv ~/Downloads/codeql*.zip ${install_loc}`` ii. ``cd ${install_loc}`` - iii. ``xattr -c codeql*.zip`` + iii. ``/usr/bin/xattr -c codeql*.zip`` iv. ``unzip codeql*.zip`` 5. Launch ``codeql``