sh sfdx-cheat-sheet.sh
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh sfdx-cheat-sheet.sh相关的知识,希望对你有一定的参考价值。
export ORG_ALIAS='DummyScratchOrg'
export PROJECT_NAME='DummyProject'
export PERMISSION_SET='DummyPermSet'
export IMPORT_PLAN='Dummy-plan.json'
# Create a Salesforce DX project
sfdx force:project:create -n $PROJECT_NAME
# Regist development/sandbox org
sfdx force:auth:web:login [-d] -a $ORG_ALIAS
# list orgs
sfdx force:org:list
# open org
sfdx force:org:open -u $ORG_ALIAS
# create scratch org
sfdx force:org:create -f config/project-scratch-def.json -a $ORG_ALIAS
# push project to scratch org
sfdx force:source:push -u $ORG_ALIAS
# update local project
sfdx force:source:pull -u $ORG_ALIAS
# add permission set to SFDX user
sfdx force:user:permset:assign -n $PERMISSION_SET -u $ORG_ALIAS
# generate password
sfdx force:user:password:generate -u $ORG_ALIAS
# import data using an exported plan
sfdx force:data:tree:import -p $IMPORT_PLAN -u $ORG_ALIAS
# delete scratch org
sfdx force:org:delete -u $ORG_ALIAS
# retrieve metadata from an unmanaged package
sfdx force:mdapi:retrieve -s -r ./mdapipkg -u $ORG_ALIAS -p ‘DummyUnmanagedPkgName’
# convert metadata API retrieved data to salesforce DX
sfdx force:mdapi:convert --rootdir mdapipkg
# convert salesforce DX project to metadata API format
sfdx force:source:convert -d mdapioutput/
# deploy metadata to testing environment
sfdx force:mdapi:deploy -d mdapioutput/ -u $ORG_TEST -w 100
以上是关于sh sfdx-cheat-sheet.sh的主要内容,如果未能解决你的问题,请参考以下文章
如何使我的命令行在具有扩展名(.sh)和名称如“weird.sh.sh.sh”的文件上工作
sh sh_template.sh
sh sh.sh
Linux下面如何运行 SH文件
配置告警系统主脚本main.sh mon.sh load.sh 502.sh disk.sh
shell 脚本各种执行方式(source ./*.sh, . ./*.sh, ./*.sh)的区别