Salesforce Visualstudio SFDX terminal command

  • sfdx force:org:open -u [aliasName] (use for open org)
  • sfdx force:source:push -f -u [aliasName] (use for deploy in org)
  • sfdx force:source:deploy -p “force-app/main” -u [aliasName] (use for deploy in org entire project)
  • sfdx force:source:deploy -p “C:\…\[project folder]\force-app\main\…[metadata]” -u [aliasName] (use for deploy in org of single file metadata)
  • sfdx force:source:retrieve -m Flow:[apiname flow] -u [aliasName]
  • sfdx force:package:install -u [aliasName] –package [id package]

sfdx force:source:retrieve

  • sfdx force:source:retrieve -m CustomField:Claim.CveClaim__c [Retrieve SFDX Custom Fields]

GIT terminal command

  • git clean -fdx (delete file and folder untracked)
  • git checkout [name branch] (move to branch)
  • git merge [branch] (merge metadata of branch into local branch)
  • git rebase [branch] (similar merge)
  • git rebase –abort
  • git rebase –continue
  • git stash (reset change not commit)
  • git status
  • git fetch
  • git pull
  • git reset –hard HEAD~1 (rollback 1 commit)
  • git reset –hard HEAD~2 (rollback 2 commit)