COS 对象存储配置

COS 对象存储配置

coscli 为腾讯云对象存储cos的客户端工具。相同的功能客户端工具还有一个是coscmd【需要依赖Python环境】

#coscli -h
Welcome to use coscli!
Usage:
  coscli [flags]
  coscli [command]
Available Commands:
  abort       Abort parts
  config      Init or edit config file
  cp          Upload, download or copy objects
  du          Displays the size of a bucket or objects
  hash        Calculate local file's hash-code or show cos file's hash-code
  help        Help about any command
  ls          List buckets or objects
  lsparts     List multipart uploads
  mb          Create bucket
  rb          Remove bucket
  restore     Restore objects
  rm          Remove objects
  signurl     Gets the signed download URL
  sync        Synchronize objects
Flags:
  -c, --config-path string   config file path(default is $HOME/.cos.yaml)
  -h, --help                 help for coscli
  -v, --version              version for coscli


coscmd 上传资源到cos对象存储上 [grayscale]

$ coscmd -h
usage: coscmd [-h] [-d] [-s] [-b BUCKET] [-r REGION] [-c CONFIG_PATH]
              [-l LOG_PATH] [--log_size LOG_SIZE]
              [--log_backup_count LOG_BACKUP_COUNT] [-v]
              {config,upload,download,delete,abort,copy,move,list,listparts,info,restore,signurl,createbucket,deletebucket,putobjectacl,getobjectacl,putbucketacl,getbucketacl,putbucketversioning,getbucketversioning,probe}
              ...
an easy-to-use but powerful command-line tool. try 'coscmd -h' to get more
informations. try 'coscmd sub-command -h' to learn all command usage, likes
'coscmd upload -h'
positional arguments:
  {config,upload,download,delete,abort,copy,move,list,listparts,info,restore,signurl,createbucket,deletebucket,putobjectacl,getobjectacl,putbucketacl,getbucketacl,putbucketversioning,getbucketversioning,probe}
    config              Config your information at first
    upload              Upload file or directory to COS
    download            Download file from COS to local
    delete              Delete file or files on COS
    abort               Aborts upload parts on COS
    copy                Copy file from COS to COS
    move                move file from COS to COS
    list                List files on COS
    listparts           List upload parts
    info                Get the information of file on COS
    restore             Restore
    signurl             Get download url
    createbucket        Create bucket
    deletebucket        Delete bucket
    putobjectacl        Set object acl
    getobjectacl        Get object acl
    putbucketacl        Set bucket acl
    getbucketacl        Get bucket acl
    putbucketversioning
                        Set the versioning state
    getbucketversioning
                        Get the versioning state
    probe               Connection test

linux自动安装配置COSCLI

腾讯云文档: 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值