forked from pozil/sfdc-ui-lookup-lwc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-dev.bat
41 lines (33 loc) · 865 Bytes
/
install-dev.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
@echo OFF
rem set parameters
set ORG_ALIAS=lookup-lwc
@echo:
echo Installing org with alias: %ORG_ALIAS%
@echo:
rem Install script
echo Cleaning previous scratch org...
cmd.exe /c sfdx force:org:delete -p -u %ORG_ALIAS% 2>NUL
@echo:
echo Creating scratch org...
cmd.exe /c sfdx force:org:create -s -f config/project-scratch-def.json -a %ORG_ALIAS% -d 30
call :checkForError
@echo:
echo Pushing source...
cmd.exe /c sfdx force:source:push -f -u %ORG_ALIAS%
call :checkForError
@echo:
rem Check exit code
@echo:
if ["%errorlevel%"]==["0"] (
echo Installation completed.
@echo:
cmd.exe /c sfdx force:org:open -p /c/SampleLookupApp.app -u %ORG_ALIAS%
)
:: ======== FN ======
GOTO :EOF
rem if the app has failed
:checkForError
if NOT ["%errorlevel%"]==["0"] (
echo Installation failed.
exit /b %errorlevel%
)