# 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](/docs/data/data-cloud-int/references/data-cloud-s3-ref/c360-a-rotate-s3-credentials.md)

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

   ```nolang
   sf 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](/docs/data/data-cloud-int/references/data-cloud-s3-ref/c360-a-rotate-s3-credentials.md) step.

   ```nolang
   sf project retrieve start --manifest=<Filename>.xml --target-metadata-dir <Result Directory> --target-org <Default User from Login>
   ```

   ```nolang
   Retrieving v59.0 metadata from <org> using the v59.0 SOAP API
   Preparing retrieve request... Succeeded
   Wrote 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](/docs/data/data-cloud-int/references/data-cloud-s3-ref/c360-a-rotate-s3-credentials.md).
