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

What's hot (20)

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

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

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

Recently uploaded (20)

PDF
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
PDF
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
PDF
Salesforce Agentforce AI Implementation.pdf
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
DOCX
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
PDF
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
PDF
Download FL Studio Crack Latest version 2025 ?
PPTX
Patient Appointment Booking in Odoo with online payment
PDF
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
PPTX
Oracle Fusion HCM Cloud Demo for Beginners
PPTX
Transform Your Business with a Software ERP System
PDF
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
PDF
Nekopoi APK 2025 free lastest update
PPTX
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
PDF
Complete Guide to Website Development in Malaysia for SMEs
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025
CCleaner Pro 6.38.11537 Crack Final Latest Version 2025
Tally Prime Crack Download New Version 5.1 [2025] (License Key Free
Salesforce Agentforce AI Implementation.pdf
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
Greta — No-Code AI for Building Full-Stack Web & Mobile Apps
Adobe Premiere Pro 2025 (v24.5.0.057) Crack free
Download FL Studio Crack Latest version 2025 ?
Patient Appointment Booking in Odoo with online payment
iTop VPN 6.5.0 Crack + License Key 2025 (Premium Version)
Oracle Fusion HCM Cloud Demo for Beginners
Transform Your Business with a Software ERP System
Product Update: Alluxio AI 3.7 Now with Sub-Millisecond Latency
Navsoft: AI-Powered Business Solutions & Custom Software Development
CHAPTER 2 - PM Management and IT Context
Design an Analysis of Algorithms I-SECS-1021-03
Log360_SIEM_Solutions Overview PPT_Feb 2020.pptx
Nekopoi APK 2025 free lastest update
AMADEUS TRAVEL AGENT SOFTWARE | AMADEUS TICKETING SYSTEM
Complete Guide to Website Development in Malaysia for SMEs
Internet Downloader Manager (IDM) Crack 6.42 Build 42 Updates Latest 2025

Salesforce DX ことはじめ