Quickstart Templates
with the Salesforce CLI
@bob_buzzard
Keir Bowden, CTO, BrightGen
Use Case
Mobile SDK Offline App
Offline App Tasks
Setup
•  Get smartstore
•  Create soup
•  Query Salesforce
•  Upsert in soup
Access Data
•  One or all?
•  Create query spec
•  Query soup
•  Get entries from cursor
•  Process entries
Update Data
•  Upsert in soup
•  Create REST request
•  REST callout
•  Process results
Quickstart App
Sample app to customise
Get big quick
Easily located
Simple as possible
Quickstart Template
Salesforce CLI Plugins
Architecture
Creating a Plugin
Installing and Running
Quickstart Structure
sfdx quickstart:offline
Demo
Template Plugin Flow
1. Capture
sObject Info
2. Read
Template File
3. Replace
sObject Info
4. Write File
QS_SOBJECT_TYPE
Account
Code!
Capture Input
Locate template
Replace Tokens
Before and after
Lessons Learned
Simplify template applications
Plugin world is fast moving
Don’t have to be Salesforce apps
Links
Github Repository bobbuzz.me.uk/DF18QSCLI
Salesforce Plugin Generator (Beta) bobbuzz.me.uk/SFCliPlugin
TrailheaDX session bit.ly/2MlUbxW
First plugin blog post (Salesforce) sforce.co/2nHCZUM
First plugin blog post (Me!) bobbuzz.me.uk/2IPvzMj
Mobile SDK Developer Center sforce.co/2933gVn
Subtitle placeholder
Questions?
Quickstart Templates with the Salesforce CLI

Quickstart Templates with the Salesforce CLI