Skip to content

sf org sandbox resume --json needs to return sufficient information to log in #2879

@shetzel

Description

@shetzel

Discussed in #2877

Originally posted by RupertBarrow May 21, 2024
The information returned by sf org sandbox resume and sf org sandbox resume --json are not consistent :

% sf org sandbox resume --name INT -o xxx

=== Sandbox Org Create/Refresh Status

 Field         Value                        
 ───────────── ──────────────────────────── 
 Id            xxx           
 SandboxName   INT                          
 Status        Completed                    
 LicenseType   DEVELOPER                    
 SandboxInfoId xxx           
 Created Date  2024-05-20T17:43:43.000+0000 
 CopyProgress  100%                         
 SandboxOrg    xxx              
 Description   xxx   
---------------------
Sandbox Create/Refresh Stages
✓ - Pending
✓ - Processing
✓ - Activating
✓ - Authenticating
The sandbox org create/refresh was successful.
The username for the sandbox is user@domain.com.int.
You can open the org by running "sf org open -o user@domain.com.int"

whereas

% sf org sandbox resume --name INT -o xxx --json
{
  "status": 0,
  "result": {
    "attributes": {
      "type": "SandboxProcess",
      "url": "/services/data/v60.0/tooling/sobjects/SandboxProcess/xxx"
    },
    "Id": "xxx",
    "Status": "Completed",
    "SandboxName": "INT",
    "SandboxInfoId": "xxx",
    "LicenseType": "DEVELOPER",
    "CreatedDate": "2024-05-20T17:43:43.000+0000",
    "CopyProgress": 100,
    "SandboxOrganization": "xxx",
    "SourceId": null,
    "Description": "xxx",
    "EndDate": "2024-05-20T18:41:24.000+0000"
  },
  "warnings": []
}

The --json does not return sufficient information to log in to the org.

We need --json to return the username (as it is displayed in the interactive mode), or at least the sandbox alias

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugIssue or pull request that identifies or fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions