> ## Documentation Index
> Fetch the complete documentation index at: https://applemusic.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# MacOS

> Apple Music Download On MacOS

# Preface

# Installation

<Steps>
  <Step title="Step 1">
    Open the terminal.

    ```
    brew install go gpac git docker && git clone https://github.com/zhaarey/apple-music-downloader.git
    ```
  </Step>

  <Step title="Step 2">
    Use the Docker command to log in to the wrapper, replace username:password in the command with your Apple Music account(`Subscription required`). If you have enabled 2FA verification, wait to receive the verification code, then open a new terminal and follow the prompts to enter the command. If the response is type 6, the login is successful. At this point, close all terminal windows.

    <CodeGroup>
      ```Bash theme={null}
      docker run -v ./rootfs/data:/app/rootfs/data -e args="-L username:password -F" --rm ghcr.io/itouakirai/wrapper:x86
      ```
    </CodeGroup>
  </Step>
</Steps>

# Usage

<Steps>
  <Step title="Step 1">
    Open the first terminal and execute the wrapper run command.

    <CodeGroup>
      ```Bash theme={null}
      docker run -v ./rootfs/data:/app/rootfs/data -p 10020:10020 -p 20020:20020 -e args="-M 20020 -H 0.0.0.0" --rm  ghcr.io/itouakirai/wrapper:x86
      ```
    </CodeGroup>
  </Step>

  <Step title="Step 2">
    Open the second terminal, get ready to start downloading.

    ```
    cd apple-music-downloader
    ```
  </Step>

  <Step title="Step 3">
    You can then use the download commands to start downloading.

    <CodeGroup>
      ```Go Albun/Playlist/Artist theme={null}
      go run main.go url
      ```

      ```Go Atmos theme={null}
      go run main.go --atmos url
      ```

      ```Go Select track theme={null}
      go run main.go --select url
      ```
    </CodeGroup>
  </Step>
</Steps>
