All Products
Search
Document Center

Object Storage Service:Install ossutil

Last Updated:Jul 31, 2025

You can use ossutil to quickly upload large files, download files, or batch delete files that have a specific prefix. ossutil runs on operating systems such as Windows, Linux, and macOS. You can download and install the version that is suitable for your environment.

Version

Current version: 2.1.2

Download ossutil

Download link

SHA256 checksum

Linux x86 32bit

3002f1334e65eb3b2b6f31feccc35cb9142c114e276c23371157432a20665201

Linux x86 64bit

133bf2dc824b221710f4ff34fdc82b4b8b1b557cf79f2b684ea9e1af4161acaf

Linux ARM 32bit

fddac6d5dcaa8eecde8afa365d73ae5a5538c51b7a3854d79be251483acb2f86

Linux ARM 64bit

7b0fc62939f6d0a6efb9f8e1d07a8fa4fc45817827628a4624d3b467a7bac5a1

macOS x86 64bit

20e685892bcc0b8a3731082409471735641f5359fc55c46890ec882f5441fec8

macOS ARM 64bit

8de04983ec17c8d1ce7ddfd99e031b7ad69fe385d57d9957f4a10f93f2da73af

Windows x86 32bit

4b820504c9d5df2486fbb1245a86fd2011f5a098f6795656adfa14d687031323

Windows x86 64bit

ea4bf1e8451b6e3d557f968bd77ff26586c95f5f6061fa560cadaff388a775f3

Windows 7, Windows 8, Windows Server 2008R2

0d84a7f38fbb97f97fbe06a06f3669de3b47082ade9347df4c92a8af1082bb6b

Install ossutil

Linux

  1. Install ossutil.

    1. Download the ossutil package.

      curl -o ossutil-2.1.2-linux-amd64.zip https://gosspublic.alicdn.com/ossutil/v2/2.1.2/ossutil-2.1.2-linux-amd64.zip
      Note

      This topic uses ossutil for 64-bit x86 Linux as an example. For the download links for other operating systems, see Download ossutil.

    2. In the directory where you downloaded the package, run the following command to decompress it.

      unzip ossutil-2.1.2-linux-amd64.zip
    3. Go to the ossutil-2.1.2-linux-amd64 directory.

      cd ossutil-2.1.2-linux-amd64
    4. Run the following command in the current directory.

      chmod 755 ossutil
    5. Run the following command to enable global access to ossutil.

      sudo mv ossutil /usr/local/bin/ && sudo ln -s /usr/local/bin/ossutil /usr/bin/ossutil
    6. Verify that ossutil is installed.

      ossutil

      If the ossutil help information is displayed, the installation is successful.

  2. Configure ossutil.

    1. Enter the configuration command.

      ossutil config
    2. Set the path of the configuration file as prompted. You can press Enter to use the default path.

      Please enter the config file name,the file name can include path(default /root/.ossutilconfig, carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):

      By default, ossutil uses /root/.ossutilconfig as the configuration file. If you set a different path for the configuration file, you must add the -c option to specify the configuration file each time you run a command. For example, if the configuration file is saved to /home/config, run the ls command in the following format:

      ossutil ls oss://examplebucket -c /home/config
    3. Set the AccessKey ID, AccessKey secret, and region ID as prompted.

      1. Enter the AccessKey ID that you created.

        Please enter Access Key ID [****************id]:LTAI****************
      2. Enter the AccessKey secret that you created.

        Please enter Access Key Secret [****************sk]:R6vg*********************
      3. Enter the region ID of the data center where your OSS data is stored. If you do not enter a value, the default value cn-hangzhou is used.

        Please enter Region [cn-hangzhou]:cn-hangzhou
      4. Enter the endpoint of the data center where your OSS data is stored. If you do not need to use a custom endpoint, you can press Enter to skip this parameter.

        After you configure the region information in the preceding step, the public endpoint that corresponds to the region ID is used by default. For example, if you set region-id to cn-hangzhou, the public endpoint https://oss-cn-hangzhou.aliyuncs.com is used by default.

        To use a custom endpoint for the region where the OSS data center is located, enter your endpoint information. For example, if you want to access OSS from other Alibaba Cloud products in the same region, use an internal endpoint such as https://oss-cn-hangzhou-internal.aliyuncs.com.

        Please enter Endpoint (optional, use public endpoint by default) [None]: https://oss-cn-hangzhou-internal.aliyuncs.com

      The following table describes the parameters.

      Parameter

      Required

      Description

      accessKeyID

      Yes

      The AccessKey of your account. For more information about how to obtain an AccessKey, see Create an AccessKey.

      Use a ROS script to quickly create an AccessKey for a RAM user that has OSS management permissions

      On the Create Stack page in the ROS console, select the confirmation check box in the Security Confirmation section, and then click Create.

      1.png

      After the stack is created, copy the AccessKey from the Outputs tab.

      image

      accessKeySecret

      Yes

      Region

      Yes

      Enter the region ID of the bucket. This topic uses the China (Hangzhou) region as an example. The region ID is set to cn-hangzhou. For more information about the IDs of other regions, see OSS regions and endpoints.

      endpoint

      No

      Enter the endpoint of the region where the bucket is located. For example, to use the public endpoint of the China (Hangzhou) region in this example, set this parameter to https://oss-cn-hangzhou.aliyuncs.com.

      If you want to access OSS from other Alibaba Cloud products in the same region, use the internal endpoint. For example, set this parameter to https://oss-cn-hangzhou-internal.aliyuncs.com.

      For more information about the endpoints of different regions, see OSS regions and endpoints.

Windows

  1. Install ossutil.

    1. Download the installation package that corresponds to your system architecture or version:

    2. Decompress the downloaded .zip package to a destination folder. Then, go to the directory where you decompressed the package, as shown in the following figure.

      image

    3. Copy the path of the ossutil folder where you decompressed the package and configure a system environment variable.

      1. Click the path bar of the current directory and copy the path of the current folder.

      2. Open the Environment Variables dialog box. In the System Variables section, find and double-click the Path variable. Click the New button, and then paste the copied path of the ossutil folder into the new entry box.

    4. Open the command line and run the ossutil command. If the ossutil help information is displayed, the installation is successful.

      ossutil
  2. Configure ossutil.

    1. Enter the configuration command.

      ossutil config
    2. Set the path of the configuration file as prompted. You can press Enter to use the default path.

      Please enter the config file name,the file name can include path(default "C:\Users\issuser\.ossutilconfig", carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands):

      By default, ossutil uses C:\Users\issuser\.ossutilconfig as the configuration file. If you set a different path for the configuration file, you must add the -c option to specify the configuration file each time you run a command. For example, if the configuration file is saved to c:\ossutil\config, run the ls command in the following format:

      ossutil ls oss://examplebucket -c c:\ossutil\config
    3. Set the AccessKey ID, AccessKey secret, and region ID as prompted.

      1. Enter the AccessKey ID that you created.

        Please enter Access Key ID [****************id]:LTAI****************
      2. Enter the AccessKey secret that you created.

        Please enter Access Key Secret [****************sk]:R6vg*********************
      3. Enter the region ID of the data center where your OSS data is stored. If you do not enter a value, the default value cn-hangzhou is used.

        Please enter Region [cn-hangzhou]:cn-hangzhou
      4. Enter the endpoint of the data center where your OSS data is stored. If you do not need to use a custom endpoint, you can press Enter to skip this parameter.

        After you configure the region information in the preceding step, the public endpoint that corresponds to the region ID is used by default. For example, if you set region-id to cn-hangzhou, the public endpoint https://oss-cn-hangzhou.aliyuncs.com is used by default.

        To use a custom endpoint for the region where the OSS data center is located, enter your endpoint information. For example, if you want to access OSS from other Alibaba Cloud products in the same region, use an internal endpoint such as https://oss-cn-hangzhou-internal.aliyuncs.com.

        Please enter Endpoint (optional, use public endpoint by default) [None]: https://oss-cn-hangzhou-internal.aliyuncs.com

      The following table describes the parameters.

      Parameter

      Required

      Description

      accessKeyID

      Yes

      The AccessKey of your account. For more information about how to obtain an AccessKey, see Create an AccessKey.

      Use a ROS script to quickly create an AccessKey for a RAM user that has OSS management permissions

      On the Create Stack page in the ROS console, select the confirmation check box in the Security Confirmation section, and then click Create.

      1.png

      After the stack is created, copy the AccessKey from the Outputs tab.

      1.png

      accessKeySecret

      Yes

      Region

      Yes

      Enter the region ID of the bucket. This topic uses the China (Hangzhou) region as an example. The region ID is set to cn-hangzhou. For more information about the IDs of other regions, see OSS regions and endpoints.

      endpoint

      No

      Enter the endpoint of the region where the bucket is located. For example, to use the public endpoint of the China (Hangzhou) region in this example, set this parameter to https://oss-cn-hangzhou.aliyuncs.com.

      If you want to access OSS from other Alibaba Cloud products in the same region, use the internal endpoint. For example, set this parameter to https://oss-cn-hangzhou-internal.aliyuncs.com.

      For more information about the endpoints of different regions, see OSS regions and endpoints.

macOS

  1. Install ossutil.

    1. Download the ossutil package.

      curl -o ossutil-2.1.2-mac-arm64.zip https://gosspublic.alicdn.com/ossutil/v2/2.1.2/ossutil-2.1.2-mac-arm64.zip
      Note

      This topic uses ossutil for 64-bit ARM macOS as an example. For the download links for other operating systems, see Download ossutil.

    2. In the directory where you downloaded the package, run the following command to decompress it.

      unzip ossutil-2.1.2-mac-arm64.zip
    3. Go to the ossutil-2.1.2-mac-arm64 directory.

      cd ossutil-2.1.2-mac-arm64
    4. Run the following command in the current directory.

      chmod 755 ossutil
    5. Run the following command to enable global access to ossutil.

      sudo mv ossutil /usr/local/bin/ && sudo ln -s /usr/local/bin/ossutil /usr/bin/ossutil
    6. Verify that ossutil is installed.

      ossutil

      If the ossutil help information is displayed, the installation is successful.

  2. Configure ossutil.

    1. Enter the configuration command.

      ossutil config
    2. Set the path of the configuration file as prompted. You can press Enter to use the default path.

      Please enter the config file name,the file name can include path(default "/Users/user/.ossutilconfig", carriage return will use the default file. If you specified this option to other file, you should specify --config-file option to the file when you use other commands): 

      By default, ossutil uses /Users/user/.ossutilconfig as the configuration file. If you set a different path for the configuration file, you must add the -c option to specify the configuration file each time you run a command. For example, if the configuration file is saved to /home/config, run the ls command in the following format:

      ossutil ls oss://examplebucket -c /home/config
    3. Set the AccessKey ID, AccessKey secret, and region ID as prompted.

      1. Enter the AccessKey ID that you created.

        Please enter Access Key ID [****************id]:LTAI****************
      2. Enter the AccessKey secret that you created.

        Please enter Access Key Secret [****************sk]:R6vg*********************
      3. Enter the region ID of the data center where your OSS data is stored. If you do not enter a value, the default value cn-hangzhou is used.

        Please enter Region [cn-hangzhou]:cn-hangzhou
      4. Enter the endpoint of the data center where your OSS data is stored. If you do not need to use a custom endpoint, you can press Enter to skip this parameter.

        After you configure the region information in the preceding step, the public endpoint that corresponds to the region ID is used by default. For example, if you set region-id to cn-hangzhou, the public endpoint https://oss-cn-hangzhou.aliyuncs.com is used by default.

        To use a custom endpoint for the region where the OSS data center is located, enter your endpoint information. For example, if you want to access OSS from other Alibaba Cloud products in the same region, use an internal endpoint such as https://oss-cn-hangzhou-internal.aliyuncs.com.

        Please enter Endpoint (optional, use public endpoint by default) [None]: https://oss-cn-hangzhou-internal.aliyuncs.com

      The following table describes the parameters.

      Parameter

      Required

      Description

      accessKeyID

      Yes

      The AccessKey of your account. For more information about how to obtain an AccessKey, see Create an AccessKey.

      Use a ROS script to quickly create an AccessKey for a RAM user that has OSS management permissions

      On the Create Stack page in the ROS console, select the confirmation check box in the Security Confirmation section, and then click Create.

      1.png

      After the stack is created, copy the AccessKey from the Outputs tab.

      1.png

      accessKeySecret

      Yes

      Region

      Yes

      Enter the region ID of the bucket. This topic uses the China (Hangzhou) region as an example. The region ID is set to cn-hangzhou. For more information about the IDs of other regions, see OSS regions and endpoints.

      endpoint

      No

      Enter the endpoint of the region where the bucket is located. For example, to use the public endpoint of the China (Hangzhou) region in this example, set this parameter to https://oss-cn-hangzhou.aliyuncs.com.

      If you want to access OSS from other Alibaba Cloud products in the same region, use the internal endpoint. For example, set this parameter to https://oss-cn-hangzhou-internal.aliyuncs.com.

      For more information about the endpoints of different regions, see OSS regions and endpoints.