Windows

1. Install s3cmd

Step 1: Check Python Installation

Ensure Python is installed by running:

python --version

If Python is not installed, download and install it from Python Official Website.

Step 2: Upgrade pip

Run the following command to upgrade pip:

python -m pip install --upgrade pip

Step 3: Install s3cmd

Run the following command to install s3cmd:

pip install s3cmd

Step 4: Ensure s3cmd is Executable

By default, Windows may recognize s3cmd as a file without an extension instead of a Python script. Navigate to the following path:

C:\Users\<Username>\AppData\Local\Programs\Python\PythonXX\Scripts\
  • If s3cmd is present without a .py extension, rename it to s3cmd.py.

  • Add this location to your system environment variables (Path).

Step 5: Verify Installation

Run:

If s3cmd does not execute correctly, open the s3cmd file and ensure the first two lines are:

If necessary, run s3cmd using:

Alternatively, create a s3cmd.bat file in the same directory as s3cmd.py with the following content:

Then, retry running:

2. Configure s3cmd

Run:

You will be prompted to enter the following details:

Test access with supplied credentials:

If the connection is successful, you will see:

Save settings:

Your configuration will be saved at:

3. Usage Examples

List Buckets

Create a Bucket

Delete an Empty Bucket

List Files in a Bucket

Upload a File to a Bucket

Example:

Upload a folder to a Bucket

Example:

Download a File from a Bucket

Example:

Delete a File

Batch Upload Files Example

Batch Download Files Example

or

Batch Delete Files Example

Last updated