---
schema_version: "1"
id: 84e3aedf0eab993cb495eacdb0766d6d8df02eff0119c5929d71af20dda23ceb
title: Install the Account Sharing Add-On
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/ind/264-0-0/cg_task_admin_download_and_install_cgcloudaddon.md
canonical_url: https://help.salesforce.com/s/articleView?id=ind.cg_task_admin_download_and_install_cgcloudaddon.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 771c9f9f4bb093db151feaec23dde85d630147f6d5d178aebcf46671ffbd3f2f
description: Download and install the CGCloudAddOns file from the add-on repository.
products:
  - Consumer Goods
release: "264"
---
# Install the Account Sharing Add-On

Download and install the CGCloudAddOns file from the add-on repository.

### Required Editions

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small edition"><colgroup><col></colgroup><tbody><tr class=""><td class="slds-cell-wrap" style="vertical-align:top;">Available in: Lightning Experience in <strong>Professional</strong>, <strong>Enterprise</strong>, and <strong>Unlimited</strong> Editions that have Consumer Goods Cloud enabled</td></tr></tbody></table>

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small permission">
        <colgroup>
          <col style="width:50%">
          <col style="width:50%">
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="colgroup" class="slds-cell-wrap" colspan="2" style="text-align:center;vertical-align:top;" id="d39928e63">User Permissions Needed</th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="User Permissions Needed" class="slds-cell-wrap" style="vertical-align:top;" headers="d39928e63 ">To install CGCloudAddOns:</td>

            <td class="slds-cell-wrap" style="vertical-align:top;" headers="d39928e63 ">
              <p>CGCloud Business Admin</p>
              <p style="margin-bottom:0;">OR</p>
              <p style="margin-bottom:0;">CGCloud Retail Business Admin</p>
            </td>

          </tr>
        </tbody>
      </table>

1. From Setup, in the Quick Find box, enter Static Resources, and then select **Static Resources.**
2. Select **CGCloudAddons**, and then click **View file**.
    
    The cgcloud\_CGCloudAddons file is downloaded.
3. Extract the file.
4. From the command prompt (Windows) or Terminal (Mac), go to cgcloud\_\_CGCloudAddOns|retail|batches|Account Sharing.
5. Deploy these folders using these Salesforce CLI commands:
    - `sf project deploy start --source-dir ./force-app/main/default/triggers --target-org <username/alias>`
    - `sf project deploy start --source-dir ./force-app/main/default/objects --target-org <username/alias>`
    - `sf project deploy start --source-dir ./force-app/main/default/classes --target-org <username/alias>`

These triggers, classes, and objects are deployed:

- AccountRelationShipTrigger that runs on the Customer Relationship object and AccTradeOrgHierarchyTrigger that runs on the Customer Trade Org Hierarchy object.
- The handler and the test classes used by the triggers for their respective objects.
- The Sharing\_Criterion\_\_c field in the Account object.
- The AccountSharingCriterionBatch batch.

#### See Also

- [Install SFDX](https://help.salesforce.com/s/articleView?id=ind.tpm_admin_task_deploy_source_code_using_sfdx.htm&type=5&language=en_US)