Use your own GitHub Remote URI in place of the sample URI
Make sure to replace https://github.com/MyGitHubUser/my-demo.git
with the URI of your GitHub repository from Step Four.
The best way to get started with the SFDX-Falcon plugin is by creating a sample AppExchange Demo Kit (ADK) project.
ADK projects allow Salesforce Developers to build and share rich, dynamic demo orgs in a source-centric manner without requiring batch files or shell scripts.
Want to try for yourself? These instructions will help you install the SFDX-Falcon CLI Plugin, clone an AppExchange Demo Kit (ADK) starter project, and distribute your first ADK project to others.
Before getting started, make your Salesforce, GitHub, and Local environments meet these prerequisites.
Once your environments meet all the prerequisites, following the rest of this guide should only take about 10 minutes.
The AppExchange Demo Kit (ADK) is installed as part of SFDX-Falcon, a plugin for the Salesforce CLI. Once you’ve completed the prerequisites from Step One, open a terminal (command prompt) and enter the following:
$ sfdx plugins:install sfdx-falcon
sfdx plugins:install
pulls the plugin source code directly from the sfdx-falcon package, hosted by NPMCreate a directory for your AppExchange Demo Kit (ADK) projects and change into the new directory.
$ cd ~
$ mkdir ADK-Projects
$ cd ADK-Projects
Demos built with the AppExchange Demo Kit (ADK) are distributed via GitHub, so the first step when creating a new ADK project is creating a new, empty, public repository on GitHub.
Start the AppExchange Demo Kit project setup wizard by executing falcon:adk:create
from the command line.
$ sfdx falcon:adk:create
sfdx falcon:adk:create
from the command lineChange into the ADK project directory you just created, then run sfdx falcon:adk:install
. Do so by entering the following:
$ cd uc-demo-app
$ sfdx falcon:adk:install
Now that you have a functional ADK demo, it’s time to push it to GitHub so others can clone (ie. download) and install it.
To do this, enter the following from inside your current ADK project directory:
$ git push --set-upstream origin master
This Git commad does two things for you. First, it sets up your local branch “master” to track the remote branch “master” in your origin repository (the one that you created in Step Four and referenced in your setup interview in Step Five).
Second, it pushes the project you just created to the remote repository. This makes it available to anyone who can access your repo. Since you created a public repository, you’ve essentially published a demo that anyone can install.
To see what others experience when consuming your demo, try the following:
$ cd ..
$ sfdx falcon:adk:clone https://github.com/MyGitHubUser/my-demo.git test-drive
Make sure to replace https://github.com/MyGitHubUser/my-demo.git
with the URI of your GitHub repository from Step Four.
After entering the above, you will go through a breif interview to determine local settings for the project you’re about to clone. Once this process is complete, enter the following:
$ cd test-drive
$ sfdx falcon:adk:install
To see the demo that you installed, open the org using the following:
$ sfdx force:org:open
To report bugs or request new features, create an issue for the SFDX-Falcon CLI Plugin which powers the AppExchange Demo Kit (ADK) and AppExchange Package Kit (APK).
Additional help is available to Salesforce ISV Partners by visiting the SFDX-Falcon Chatter Group in the Partner Community and posting questions there.