Loading...
Loading...
Switches the active Salesforce org (default target-org) using the Salesforce CLI. Use whenever someone wants to change which org CLI commands run against — whether they say "switch org", "change default org", "set my org to", "use alias", "point to", or describe wanting to work against a specific org, scratch org, sandbox, or production.
npx skill4agent add forcedotcom/afv-library switching-orgorgIdentifiersf org listsf config set target-org <orgIdentifier>sf config set target-org <orgIdentifier> --globalsf org login websf config get target-org --jsontarget-org is now set to: <value>sf config get target-orgtarget-orgtarget-dev-hubdefaultusernamedefaultdevhubusername--local--scopeSF_TARGET_ORG