SlideShare a Scribd company logo
Salesforce DX
2017.7.12
Tokyo Salesforce Developer Group
Meetup #15
• Salesforce DX CLI
• https://goo.gl/rHYmms OS
• Dev Hub Trial Org
• https://goo.gl/p1pL87






Twitter: zaki___yama



Blog: http://dackdive.hateblo.jp/
Salesforce DX ことはじめ
Salesforce DX ことはじめ
• Salesforce DX
•
•
• Salesforce DX CLI
• CLI
• Dev Hub
• Scratch Org
•
•
Salesforce DX
• Dreamforce’16 Dev Keynote
• Pilot
• 6 TrailheaDX Open Beta
• Trailhead
Salesforce DX :
https://www.slideshare.net/DeveloperForceJapan/spring-17
https://www.slideshare.net/DeveloperForceJapan/spring-17
https://www.slideshare.net/DeveloperForceJapan/spring-17
• CLI
•
•
•
• Scratch Org
• Docker
Salesforce DX :
• CLI
Metadata API
• Force.com Migration Tool jsforce
• CLI
:
Salesforce DX CLI
CLI
https://trailhead.salesforce.com/ja/trails/sfdx_get_started/modules/sfdx_app_dev/units/
sfdx_app_dev_setup_dx#Tdxn4tBK-heading6
• Dev Hub = Scratch Org
• Dev Hub
1. 30
2. Dev Hub
Dev Hub
1. Dev Hub Trial Org
https://developer.salesforce.com/promotions/orgs/dx-signup
2.
Dev Hub
$ sfdx force:auth:web:login -d -a DevHub
# :
-d: Dev Hub
-a:
#
$ sfdx force:org:open -u DevHub
Tips:
$ sfdx force:auth:web:login -a FullSandbox
$ sfdx force:auth:web:login -a DevSandbox
• force:auth:web:login Dev Hub Scratch
Org
• Sandbox
Tips:
$ sfdx force:auth:web:logi -d -a DevHub
▸ force:auth:web:logi is not a sfdx command.
▸ Perhaps you meant force:auth:web:login?
▸ Run sfdx _ to run sfdx force:auth:web:login -d -a DevHub.
▸ Run sfdx help for a list of available commands.
$ sfdx _
Successfully authorized admin@yama.dev-hub.com with org id
00D7F000000ykQEUAY
You may now close the browser
typo 

sfdx _
$ sfdx force:org:list
=== Organizations
ALIAS USERNAME ORG ID
!!! !!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!!!
scratchorg1487912703272@yourcompany.com 00D3D0000000
DXPlayground shingoyamazaki00@cunning-raccoon-459484.com 00D7F000000z
(D) DevHub admin@yama.dev-hub.com 00D7F000000y
Hub Org dxpilot+shingoyamazaki00@gmail.com 00D6F000001f
ALIAS SCRATCH ORG NAME USERNAME O
!!!!!!!!!!!!! !!!!!!!!!!!!!!!! !!!!!!
GeoTestOrg yamazaki Company test-kqg7awbaeoo1@yamazaki_company.net 0
TempUnmanaged yamazaki Company test-nizw4ivearhy@yamazaki_company.net 0
$ sfdx force:project:create -n geolocation
$ tree geolocation
geolocation
"!! README.md
"!! config
#   %!! project-scratch-def.json
"!! force-app
#   %!! main
#   %!! default
#   %!! aura
%!! sfdx-project.json
# Git
sfdx-project.json
{
"packageDirectories": [
{
"path": "force-app",
"default": true
}
],
"namespace": "",
"sfdcLoginUrl": "https://login.salesforce.com",
"sourceApiVersion": "40.0"
}


Salesforce DX Developer Guide (Beta) > Salesforce DX Project Configuration
config/project-scratch-def.json
{
"orgName": "yamazaki Company",
"edition": "Developer",
"orgPreferences" : {
"enabled": ["S1DesktopEnabled"]
}
}


Salesforce DX Developer Guide (Beta) > Scratch Org Definition File
Salesforce DX Developer Guide (Beta) > Scratch Org Definition Configuration Values
Scratch Org
Scratch Org
$ sfdx force:org:create -s -f config/project-scratch-def.json -a
GeoAppScratch
# :
-s Scratch Org
-f Scratch Org
-a
# `.sfdx`
# .gitignore
# geolocation
$ git clone https://github.com/zaki-yama/sfdx-trailhead tmp
$ cp -r tmp/geolocation/force-app geolocation
$ cp -r tmp/geolocation/data geolocation
#
$ sfdx force:source:push
STATE FULL NAME TYPE PROJECT
!!!!! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !!!!!!!!!!!!!!!!!!!! !!!!!!!!
Add AccountList AuraDefinitionBundle force-ap
Add AccountListItem AuraDefinitionBundle force-ap
Add AccountLocator AuraDefinitionBundle force-ap
Add AccountMap AuraDefinitionBundle force-ap
...


https://github.com/zaki-yama/sfdx-trailhead/tree/master/geolocation
# Geolocation
# (force-app/main/default/permissionsets/Geolocation.permissionset)
$ sfdx force:user:permset:assign -n Geolocation
Permission Set successfully assigned
$ sfdx force:data:tree:import -f data/Account.json
=== Import Results
REFERENCE ID TYPE ID
!!!!!!!!!!!! !!!!!!! !!!!!!!!!!!!!!!!!!
AccountRef1 Account 0010q000004soQGAAY
AccountRef2 Account 0010q000004soQHAAY
AccountRef3 Account 0010q000004soQIAAY
# json
-
- force:data:tree:export -q “SELECT Id, …” -d ./data
#
#
$ sfdx force:org:open
Scratch Org
$ mkdir mdapioutput
# force-app/ mdapioutput/
$ sfdx force:source:convert -d mdapioutput/
#
$ sfdx force:mdapi:deploy -d mdapioutput/ -u MyTPO -w 100
Scratch Org
convert
force:source force:mdapi
Scratch Org
$ sfdx force:org:delete -u GeoAppScratch
Enqueue scratch org with name: GeoAppScratch for deletion? Are you
sure (y/n)?: y
Successfully marked scratch org GeoAppScratch for deletion
Scratch Org
Salesforce DX ことはじめ
• Scratch Org
•
• CI Git/GitHub Flow
• CLI
•
• Apex Lightning Component
• retrieve
•
• retrieve
Trailhead
•
•
•
Trailhead

More Related Content

PDF
Tokyo Salesforce DG Meetup 2017新年会〜Advent Calendarふりかえり〜
Akira Kuratani
 
PDF
SWTT2016 ミニハックをふりかえる
Shingo Yamazaki
 
PDF
静的解析、はじまったな
Akira Kuratani
 
PDF
SWTT2017 ミニハックをふりかえる
Shingo Yamazaki
 
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
PPTX
Introduction to mulesoft - Alpharetta Developer Group Meet
Jitendra Zaa
 
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
Tokyo Salesforce DG Meetup 2017新年会〜Advent Calendarふりかえり〜
Akira Kuratani
 
SWTT2016 ミニハックをふりかえる
Shingo Yamazaki
 
静的解析、はじまったな
Akira Kuratani
 
SWTT2017 ミニハックをふりかえる
Shingo Yamazaki
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
Introduction to mulesoft - Alpharetta Developer Group Meet
Jitendra Zaa
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 

What's hot (20)

PPTX
Build sfdx plugin in 15 minutes
Jitendra Zaa
 
PPTX
Understanding how to use Swagger and its tools
Swagger API
 
PPTX
A Starters Guide to Building APIs with Javascript
All Things Open
 
PDF
Algolia's Fury Road to a Worldwide API
Paul-Louis NECH
 
PPTX
Integration-Monday-Logic-Apps-Tips-Tricks
BizTalk360
 
PDF
China Car Sales: Luxgen - December 2015
Uli Kaiser
 
PDF
Design Driven API Development
Sokichi Fujita
 
PDF
apidays LIVE New York 2021 - API tool chain for low budget programs by Paul K...
apidays
 
PDF
Serverless Architecture
Lena Barinova
 
PDF
既存の資産をXamarinで / Utilize existing assets as Xamarin library
Yusuke Yamada
 
ODP
GWT
javalabsf
 
PPTX
Swagger in the API Lifecycle
Ole Lensmar
 
PPTX
Swagger - make your API accessible
Victor Trakhtenberg
 
PDF
Automating the API Product Lifecycle
Pronovix
 
PPTX
Key alias dev standard final
Raditya Alwafi Surachman
 
PDF
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
apidays
 
PPTX
Salesforce DX for Non-Scratch Org
Amit Chaudhary
 
PDF
Lessons learned: Choosing your documentation system
Pronovix
 
PDF
Social Network
SiliconPrime
 
PPTX
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
Build sfdx plugin in 15 minutes
Jitendra Zaa
 
Understanding how to use Swagger and its tools
Swagger API
 
A Starters Guide to Building APIs with Javascript
All Things Open
 
Algolia's Fury Road to a Worldwide API
Paul-Louis NECH
 
Integration-Monday-Logic-Apps-Tips-Tricks
BizTalk360
 
China Car Sales: Luxgen - December 2015
Uli Kaiser
 
Design Driven API Development
Sokichi Fujita
 
apidays LIVE New York 2021 - API tool chain for low budget programs by Paul K...
apidays
 
Serverless Architecture
Lena Barinova
 
既存の資産をXamarinで / Utilize existing assets as Xamarin library
Yusuke Yamada
 
Swagger in the API Lifecycle
Ole Lensmar
 
Swagger - make your API accessible
Victor Trakhtenberg
 
Automating the API Product Lifecycle
Pronovix
 
Key alias dev standard final
Raditya Alwafi Surachman
 
apidays LIVE Paris 2021 - Using OpenAPI to configure your API Gateway by Ole ...
apidays
 
Salesforce DX for Non-Scratch Org
Amit Chaudhary
 
Lessons learned: Choosing your documentation system
Pronovix
 
Social Network
SiliconPrime
 
Azure Integration DTAP Series, How to go from Development to Production – Par...
BizTalk360
 
Ad

Similar to Salesforce DX ことはじめ (20)

PPTX
Salesforce DX for admin
Thierry TROUIN ☁
 
PPTX
Salesforce DX for Admin v2
Thierry TROUIN ☁
 
PPT
Salesforce Developer eXperience (SFDX)
Bohdan Dovhań
 
PPTX
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
Thierry TROUIN ☁
 
PPT
SFDX - Spring 2019 Update
Bohdan Dovhań
 
PPTX
Get started with Salesforce DX
Anurag Bhardwaj
 
PPT
SFDX Presentation
Bohdan Dovhań
 
PPTX
Créer et gérer une scratch org avec Visual Studio Code
Thierry TROUIN ☁
 
PPTX
Salesforce Apex Hours:- Salesforce DX
Amit Chaudhary
 
PPTX
Salesforce DX Test Data Migration
Abhi TriPaThi ☁
 
PPTX
SalesforceDX : SalesforceSaturday
Madan Khichi
 
PDF
Salesforce DX & Deep Dive demo on force:data commands
Steven Hugo
 
PPTX
FTD19 - Salesforce DX with "Visual Studio code"
Thierry TROUIN ☁
 
PDF
Dev sum - Beyond REST with GraphQL in .Net
Irina Scurtu
 
PPTX
Build your own dev tools with salesforce cli plugin generator
Mohith Shrivastava
 
PDF
Build Apps with Modern AI Powered Developer Tools..pdf
Dele Amefo
 
PDF
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
mfrancis
 
PDF
Let's build Developer Portal with Backstage
Opsta
 
PDF
Introduction to interactive data visualisation using R Shiny
anamarisaguedes
 
PDF
Spark zeppelin-cassandra at synchrotron
Duyhai Doan
 
Salesforce DX for admin
Thierry TROUIN ☁
 
Salesforce DX for Admin v2
Thierry TROUIN ☁
 
Salesforce Developer eXperience (SFDX)
Bohdan Dovhań
 
Comment utiliser Visual Studio Code pour travailler avec une scratch Org
Thierry TROUIN ☁
 
SFDX - Spring 2019 Update
Bohdan Dovhań
 
Get started with Salesforce DX
Anurag Bhardwaj
 
SFDX Presentation
Bohdan Dovhań
 
Créer et gérer une scratch org avec Visual Studio Code
Thierry TROUIN ☁
 
Salesforce Apex Hours:- Salesforce DX
Amit Chaudhary
 
Salesforce DX Test Data Migration
Abhi TriPaThi ☁
 
SalesforceDX : SalesforceSaturday
Madan Khichi
 
Salesforce DX & Deep Dive demo on force:data commands
Steven Hugo
 
FTD19 - Salesforce DX with "Visual Studio code"
Thierry TROUIN ☁
 
Dev sum - Beyond REST with GraphQL in .Net
Irina Scurtu
 
Build your own dev tools with salesforce cli plugin generator
Mohith Shrivastava
 
Build Apps with Modern AI Powered Developer Tools..pdf
Dele Amefo
 
OSGi Feature Model - Where Art Thou - David Bosschaert (Adobe)
mfrancis
 
Let's build Developer Portal with Backstage
Opsta
 
Introduction to interactive data visualisation using R Shiny
anamarisaguedes
 
Spark zeppelin-cassandra at synchrotron
Duyhai Doan
 
Ad

Recently uploaded (20)

PDF
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
PPTX
Explanation about Structures in C language.pptx
Veeral Rathod
 
PPTX
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
PDF
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
PPTX
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
PPTX
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
PPTX
Presentation about variables and constant.pptx
kr2589474
 
PDF
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
PPTX
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
PDF
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
PDF
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
PPT
Activate_Methodology_Summary presentatio
annapureddyn
 
PDF
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
PDF
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
PDF
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
PPTX
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
PPTX
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
PDF
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
PDF
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
PDF
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 
49784907924775488180_LRN2959_Data_Pump_23ai.pdf
Abilash868456
 
Explanation about Structures in C language.pptx
Veeral Rathod
 
GALILEO CRS SYSTEM | GALILEO TRAVEL SOFTWARE
philipnathen82
 
vAdobe Premiere Pro 2025 (v25.2.3.004) Crack Pre-Activated Latest
imang66g
 
The-Dawn-of-AI-Reshaping-Our-World.pptxx
parthbhanushali307
 
Can You Build Dashboards Using Open Source Visualization Tool.pptx
Varsha Nayak
 
Presentation about variables and constant.pptx
kr2589474
 
Generating Union types w/ Static Analysis
K. Matthew Dupree
 
Odoo Integration Services by Candidroot Solutions
CandidRoot Solutions Private Limited
 
What to consider before purchasing Microsoft 365 Business Premium_PDF.pdf
Q-Advise
 
Adobe Illustrator Crack Full Download (Latest Version 2025) Pre-Activated
imang66g
 
Activate_Methodology_Summary presentatio
annapureddyn
 
Enhancing Healthcare RPM Platforms with Contextual AI Integration
Cadabra Studio
 
Salesforce Implementation Services Provider.pdf
VALiNTRY360
 
Key Features to Look for in Arizona App Development Services
Net-Craft.com
 
TRAVEL APIs | WHITE LABEL TRAVEL API | TOP TRAVEL APIs
philipnathen82
 
classification of computer and basic part of digital computer
ravisinghrajpurohit3
 
New Download FL Studio Crack Full Version [Latest 2025]
imang66g
 
On Software Engineers' Productivity - Beyond Misleading Metrics
Romén Rodríguez-Gil
 
Download iTop VPN Free 6.1.0.5882 Crack Full Activated Pre Latest 2025
imang66g
 

Salesforce DX ことはじめ