Skip to main content

Advanced command line tool for QingStor.

Project description

qsctl is intended to be an advanced command line tool for QingStor, it provides powerful unix-like commands to let you manage QingStor resources just like files on local machine. Unix-like commands contains: cp, ls, mb, mv, rm, rb, and sync. All of them support batch processing.



$ pip install qsctl


$ sudo pip install qsctl

On Windows systems, run it in a command-prompt window with administrator privileges, and leave out sudo.

Getting Started

To use qsctl, there must be a configuration file to configure your own qy_access_key_id, qy_secret_access_key, and zone, for example:

qy_access_key_id: 'QINGCLOUDACCESSKEYID'
zone: 'pek3a'

The configuration file is ~/.qingcloud/config.yaml by default, it also can be specified by the option -c /path/to/config.

Available Commands

Commands supported by qsctl are listed below:


List qingstor keys under a prefix or all qingstor buckets.


Copy local file(s) to qingstor or qingstor key(s) to local.


Create a qingstor bucket.


Delete an empty qingstor bucket or forcibly delete nonempty qingstor bucket.


Move local file(s) to qingstor or qingstor keys(s) to local.


Delete a qingstor key or keys under a prefix.


Sync between local directory and qingstor prefix.


List keys in bucket <mybucket> by running:

$ qsctl ls qs://mybucket
Directory                          test/
2016-04-03 11:16:04     4 Bytes    test1.txt
2016-04-03 11:16:04     4 Bytes    test2.txt

Sync from qingstor prefix to local directory:

$ qsctl sync qs://mybucket3/test/ test/
File 'test/' written
File 'test/' written

See the detailed usage and more examples with ‘qsctl help’ or ‘qsctl <command> help’.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

testqsctl-1.4.tar.gz (22.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page