TrainingTracker App
Spin up a Scratch org TrainingTracker_ORG1
$ sfdx force:project:create -n TrainingTracker
target dir = /Users/mchinnappan/lightning/apps
create TrainingTracker/sfdx-project.json
create TrainingTracker/README.md
create TrainingTracker/.forceignore
create TrainingTracker/config/project-scratch-def.json
cd TrainingTracker
open https://developer.salesforce.com/promotions/orgs/dx-signup
$ sfdx force:auth:web:login -d -a DevHub201
Successfully authorized mohan.chinnappan.dh201@gmail.com with org ID 00D1H000000NSUhUAO
You may now close the browser
$ sfdx force:org:list
=== Orgs
ALIAS USERNAME ORG ID CONNECTED STATUS
─── ────────── ──────────────────────────────────── ────────────────── ─────────────────
(D) DevHub201 mohan.chinnappan.dh201@gmail.com 00D1H000000NSUhUAO Connected
$ sfdx force:org:create -s -f config/project-scratch-def.json -a TrainingTracker_ORG1
Successfully created scratch org: 00DZ000000NDy8QMAT, username: test-9gslwclndh6i@example.com
$ sfdx force:org:list
=== Orgs
ALIAS USERNAME ORG ID CONNECTED STATUS
─── ────────── ──────────────────────────────────── ────────────────── ─────────────────
(D) DevHub201 mohan.chinnappan.dh201@gmail.com 00D1H000000NSUhUAO Connected
ALIAS SCRATCH ORG NAME USERNAME ORG ID EXPIRATION DATE
─── ──────────────────── ─────────────────── ───────────────────────────── ────────────────── ───────────────
(U) TrainingTracker_ORG1 mchinnappan Company test-9gslwclndh6i@example.com 00DZ000000NDy8QMAT 2018-06-23
$ sfdx force:lightning:component:create -n Greeter -d force-app/main/default/aura/
$ code .
$ sfdx force:source:push
$ sfdx force:org:open
Access org 00DZ000000NDy8QMAT as user test-9gslwclndh6i@example.com with the following URL: https://saas-customization-7196-dev-ed.cs11.my.salesforce.com/secur/frontdoor.jsp?sid=00DZ000000NDy8Q!AREAQL0BPZX4aInIffjSNQwc6QnorhgOsZHYaTT4U_brQvGfTrn_8WoAqtvYKfTh_2Ez6hx45k99d2yEVHUH0KF9V51rke4x
$ sfdx force:source:pull
=== Pulled Source
STATE FULL NAME TYPE PROJECT PATH
───── ───────────────────────────────────────── ──────────────────── ─────────────────────────────────────────────────────────────────────────────────
Add TrainingTrackerApp/TrainingTrackerApp.app AuraDefinitionBundle force-app/main/default/aura/TrainingTrackerApp/TrainingTrackerApp.app-meta.xml
Add TrainingTrackerApp/TrainingTrackerApp.app AuraDefinitionBundle force-app/main/default/aura/TrainingTrackerApp/TrainingTrackerApp.app
Add Contact.Department__c CustomField force-app/main/default/objects/Contact/fields/Department__c.field-meta.xml
Add Contact-Contact Layout Layout force-app/main/default/layouts/Contact-Contact Layout.layout-meta.xml
Add Contact-Contact (Support) Layout Layout force-app/main/default/layouts/Contact-Contact (Support) Layout.layout-meta.xml
Add Contact-Contact (Sales) Layout Layout force-app/main/default/layouts/Contact-Contact (Sales) Layout.layout-meta.xml
Add Contact-Contact (Marketing) Layout Layout force-app/main/default/layouts/Contact-Contact (Marketing) Layout.layout-meta.xml