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

# Upgrading and Downgrading

Last updated on Apr 04, 2024

The upgrade and downgrade processes are only performed on the Primary Coordinator. After the version of your Primary Coordinator is changed, all associated Agents and the Secondary Coordinator are automatically changed to the same version within a few minutes.

Both upgrading and downgrading are performed using the same command. If Incredibuild detects that the version of the installer you are using is earlier than your current version, a downgrade will be performed. If the installer is using a later version than your current version, an upgrade will be performed.

1. Get the Incredibuild for Mac DMG file and copy it to your Primary Coordinator.

2. Mount the DMG file with the following command (replace Incredibuild\_4.2.0 with the name of the file below)

   ```
   hdiutil attach -quiet Incredibuild_4.2.0.dmg
   ```

   Alternatively, you can mount the DBG file by double-clicking it in Finder.

3. Run the command:

   ```
   /Volumes/Incredibuild_4.2.0/Incredibuild_4.2.0.app/Contents/MacOS/installbuilder.sh --action upgrade --accept-eula true
   ```

4. Unmount the DMG file with the following command (replace Incredibuild\_4.2.0 with the name of the file below)

   ```
   hdiutil detach /Volumes/Incredibuild_4.2.0
   ```
