s3cmd

Install s3cmd

  1. Make sure you have Python version 2.7 or higher.
  2. Install s3cmd using pip:

    pip install s3cmd

    You may have the run the command with sudo if you receive a permission denied error:

    sudo pip install s3cmd

Configure s3cmd

  1. Download this s3cfg file.
  2. Edit the file and replace REPLACE_WITH_ACCESS_KEY and REPLACE_WITH_SECRET_KEY with the S3 API keys.
  3. Move the files to ~/.s3cfg

Run s3cmd

  1. List containers (buckets):

    s3cmd ls
  2. List objects in containers (buckets):

    s3cmd ls s3://container_name/
  3. To get a list of all s3cmd commands:

    s3cmd