Retrieve S3 Connector Metadata with Salesforce CLI

You can retrieve the metadata of an S3 Connector by using Salesforce CLI.

Complete the prerequisite of Defining the Metadata of S3 Connector

  1. Authorize your org so Salesforce CLI can access it by logging into the org. This command redirects you to the default browser.

    1sf org login web --instance-url https://MYDOMAINNAME.my.salesforce.com --alias <Alias> --set-default

    CLI login is a one-time task. The login details are saved so that a username or alias can get used for future logins.

  2. Retrieve the S3 connector metadata by using this command. The file referenced in the command must be the name of the unpackage.xml created in Defining the Metadata of S3 Connector step.

    1sf project retrieve start --manifest=<Filename>.xml --target-metadata-dir <Result Directory> --target-org <Default User from Login>
    1Retrieving v59.0 metadata from <org> using the v59.0 SOAP API
    2Preparing retrieve request... Succeeded
    3Wrote retrieve zip file to /Users/adray/Downloads/unpackaged.zip.

    The file retrieved has the name unpackage.zip. Rename the file recognizably to use in later steps.

Proceed to Update the S3 access key and secret key attributes.