Get the SFRA Repositories from GitHub

To use the Storefront Reference Architecture (SFRA) as a blueprint for developing your own storefront, you must have access to the Salesforce CommerceCloud repositories on GitHub. You can then either download a copy of the SFRA repositories or clone the repositories on your local system. If you clone the repositories, you can issue git commands to perform tasks like getting the latest updates or seeing recent changes.

  1. If you don’t already have a GitHub account, create one on Github.
  2. Enable Two-Factor Authentication for your GitHub account.
  3. Navigate to the XChange User Community Profile, and log in with Account Manager credentials.
    If you have an active session on XChange, you might be logged in automatically.
  4. On the left side, select Github. Follow the steps on the screen to authenticate, link your GitHub account, and request access.
  5. At the bottom, click Visit Commerce Cloud on Github.
  6. At the top, click View Invitation. Accept the invitation.
    You now have access to the Salesforce CommerceCloud repositories on GitHub.
  7. Search for the following repositories, and click Clone or download to copy each repository to your local system.
    CAUTION:
    Clone or download the repositories next to each other, as siblings, as in the following example. If you nest the repositories, you can’t use the build tools.
    your project
    ├── eslint-plugin-sitegenesis
    ├── lib_productlist
    ├── plugin-applepay
    ├── plugin_datadownload
    ├── plugin_giftregistry
    ├── plugin_instorepickup
    ├── plugin_productcompare
    ├── plugin_sitemap
    ├── plugin_wishlists
    ├── sfra-jsdoc
    ├── sgmf-scripts
    ├── storefront-reference-architecture
        ├── cartridges
        │   ├── app_storefront_base
        │   └── modules
    └── storefrontdata
    ├── app_custom_domain_mysite1
    ├── app_custom_domain_mysite2
    
  8. If you downloaded the repositories, expand the .zip files.
    Note: On macOS, you can use the command-line unzip utility to expand the files.