{"id":19151722,"url":"https://github.com/zhs007/aliyun-cli","last_synced_at":"2025-08-15T17:08:43.938Z","repository":{"id":57176196,"uuid":"47305479","full_name":"zhs007/aliyun-cli","owner":"zhs007","description":null,"archived":false,"fork":false,"pushed_at":"2017-09-15T02:15:15.000Z","size":8,"stargazers_count":1,"open_issues_count":1,"forks_count":4,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-11T15:32:42.715Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zhs007.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-12-03T03:38:28.000Z","updated_at":"2016-03-25T10:55:59.000Z","dependencies_parsed_at":"2022-09-03T23:32:03.321Z","dependency_job_id":null,"html_url":"https://github.com/zhs007/aliyun-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zhs007/aliyun-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Faliyun-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Faliyun-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Faliyun-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Faliyun-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zhs007","download_url":"https://codeload.github.com/zhs007/aliyun-cli/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zhs007%2Faliyun-cli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270602456,"owners_count":24614260,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-15T02:00:12.559Z","response_time":110,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T08:15:32.707Z","updated_at":"2025-08-15T17:08:43.909Z","avatar_url":"https://github.com/zhs007.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aliyun-cli\n一个跨平台的阿里云命令行工具。\n\n特点\n---\n* 跨平台，易于部署，非常方便的在服务器、客户端各种不同环境下统一运行\n* 支持通配符，支持子目录遍历，自动在OSS下建目录结构，而且在各种平台下表现一致\n* 在同步OSS的同时，支持文件级别的实时CDN刷新\n* 支持服务器使用内网方式运行，最大传输效率利用\n* 支持不同OSS之间的文件传输\n* 支持同OSS之间的文件复制\n\n更新说明\n---\n* **0.2.0**\n * **oss-cli** 增加对同步CDN刷新功能\n * **oss-cli** 里，调整 **osspath** 为非必填参数，不带该参数，将默认传到根目录下\n * **oss-cli** 里，增加对 **osspath** 参数容错处理，会自动去除不必要的 **/** 字符\n\n* **0.1.0**\n * **oss-cli** 的支持\n\n安装\n---\n全局安装aliyun-cli即可。\n\n```\nnpm install aliyun-cli -g\n```\n\n使用 oss-cli\n---\n我们可以将本地文件直接传到OSS上\n\n```\noss-cli *.md --id=\u003caccessKeyId\u003e --key=\u003csecretAccessKey\u003e --bucket=\u003cbucket\u003e --osspath=test --endpoint=hz --islocal=true --cdn=http://cdn.simyouxi.com\n```\n\n这样就可以将*.md文件传到oss的test目录下。\n\n参数定义如下：\n\n* **id** - 用户自己阿里云配置的 accessKeyId\n* **key** - 用户自己阿里云配置的 secretAccessKey\n* **bucket** - 用户自己阿里云的目标 bucket\n* **osspath** - 可选参数，默认传到根目录，如果需要调整，就是oss上的目录\n* **endpoint** - oss开通的区域，杭州就是hz，北京就是bj等等\n* **islocal** - 可选参数，表示是否内网传输，如果从ecs上传文件，可以给true，这样速度会很快，否则给false\n* **cdn** - 可选参数，如果填了这个参数，表示会同时刷新CDN文件\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhs007%2Faliyun-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzhs007%2Faliyun-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzhs007%2Faliyun-cli/lists"}