Salesforce Push Upgrade

Schedules a push upgrade via the Enterprise API. Credentials can come from the form or server .env.

Get your Session ID

  1. Open the packaging org in Salesforce.
  2. Open Developer Console → Debug → Open Execute Anonymous Window.
  3. Run this Apex, then open the log and copy the debug line:
System.debug(UserInfo.getOrganizationId().substring(0, 15) +  ' ' + UserInfo.getSessionId().substring(15));

Monitor push upgrade

Check progress for an existing PackagePushRequest (Id starts with 0DV).