Skip to content

Authentication

The plugin has no login of its own. It uses the sf session stored for the target org alias, so the login you already use for sf project deploy works here.

Interactive, on a developer laptop:

sf org login web --alias staging
sf org login web --alias prod

Headless, on a CI runner:

sf org login jwt \
  --username admin@mycompany.com \
  --jwt-key-file server.key \
  --client-id <connected-app-client-id> \
  --alias prod

Every command that talks to an org takes --target-org <alias> (or -o <alias>). There is no extra token or secret to manage beyond your normal sf login.