KEMBAR78
Forcedotcom SFDX Simple | PDF | Salesforce.Com | Software Development
0% found this document useful (0 votes)
220 views2 pages

Forcedotcom SFDX Simple

This document summarizes the forcedotcom/sfdx-simple GitHub repository which provides a minimal sample Salesforce DX project. It outlines the steps to set up the project by cloning the repository and authorizing an org. It also describes pushing the source to a scratch org, running tests, and opening the scratch org. The purpose is to demonstrate the basic Salesforce DX workflow and structure of an sfdx project.

Uploaded by

Pascal Jaramillo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
220 views2 pages

Forcedotcom SFDX Simple

This document summarizes the forcedotcom/sfdx-simple GitHub repository which provides a minimal sample Salesforce DX project. It outlines the steps to set up the project by cloning the repository and authorizing an org. It also describes pushing the source to a scratch org, running tests, and opening the scratch org. The purpose is to demonstrate the basic Salesforce DX workflow and structure of an sfdx project.

Uploaded by

Pascal Jaramillo
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

13/05/2019 forcedotcom/sfdx-simple

forcedotcom / sfdx‑simple
No description, website, or topics provided.
106 commits 8 branches 0 releases 15 contributors Apache‑2.0
Branch: master New pull request Create new file Upload files Find File Clone or download
wadewegner Update README.md Latest commit 0a8d85c on 3 Jan 2018
config Delete workspace‑scratch‑def.json 2 years ago
force‑app Update DemoControllerTests.cls 2 years ago
.gitignore Updated workspace to conform with pilot 2 years ago
.project Create a minimal .project 2 years ago
.salesforcedx.yaml Update .salesforcedx.yaml 2 years ago
LICENSE Added LICENSE 3 years ago
README.md Update README.md a year ago
sfdx‑project.json Update config to beta 2 years ago
README.md

SFDX Simple App


The Salesforce Developer Experience (SFDX) starts with source code living in your version control system.
Set Up the Salesforce DX Project
Our first goal is to set up a developer project which we'll use to modify our application. It starts by cloning the repository.
Use the command ...
git clone https://github.com/forcedotcom/sfdx-simple.git

… or ...
git clone git@github.com:forcedotcom/sfdx-simple.git

… to clone the repository. Then, open the directory.


cd sfdx-simple

Steps
Authorize to your Developer Hub (Dev Hub) org.
sfdx force:auth:web:login -d -a "Hub Org"

If you already have an authorized Dev Hub, set it as the default:


sfdx force:config:set defaultdevhubusername=<username|alias>

https://github.com/forcedotcom/sfdx-simple 1/2
13/05/2019 forcedotcom/sfdx-simple
Create a scratch org.
sfdx force:org:create -s -f config/project-scratch-def.json

If you want to use an existing scratch org, set it as the default:


sfdx force:config:set defaultusername=<username|alias>

Push your source.


sfdx force:source:push

Run your tests.


sfdx force:apex:test:run
sfdx force:apex:test:report -i <id>

Open the scratch org.


sfdx force:org:open --path one/one.app

Resources
For details on using sfdx‑simple, please review the Salesforce DX Developer Guide.
Description of Files and Directories
sfdx‑project.json: Required by Salesforce DX. Configures your project. Use this file to specify the parameters that
affect your Salesforce development project.
config/project‑scratch‑def.json: Sample file that shows how to define the shape of a scratch org. You reference this
file when you create your scratch org with the force:org:create command.
force‑app: Directory that contains the source for the sample Force.com app and tests.
.project: Required by the Eclipse IDE. Describes the Eclipse project.
.gitignore: Optional Git file. Specifies intentionally untracked files that you want Git (or in this case GitHub) to ignore.
Issues
Please log issues related to this repository here.

https://github.com/forcedotcom/sfdx-simple 2/2

You might also like