Skip to content

Latest commit

 

History

History
37 lines (25 loc) · 1.5 KB

sync.md

File metadata and controls

37 lines (25 loc) · 1.5 KB
title description position category
资源同步 sync
资源同步 sync
3
其他功能

Sync 命令

sync 命令是将线上的资源同步到本地的命令。

命令解析

当执行命令sync -h/sync --help命令时,可以获取帮助文档。

参数解析

参数全称 参数缩写 Yaml模式下必填 Cli模式下必填 参数含义
region - 必填 必填 地区,取值范围:cn-hangzhou, cn-beijing, cn-beijing, cn-hangzhou, cn-shanghai, cn-qingdao, cn-zhangjiakou, cn-huhehaote, cn-shenzhen, cn-chengdu, cn-hongkong, ap-southeast-1, ap-southeast-2, ap-southeast-3, ap-southeast-5, ap-northeast-1, eu-central-1, eu-west-1, us-west-1, us-east-1, ap-south-1
namespace-id - 选填 选填 命名空间id
application-name - 必填 必填 应用名

操作案例

  • 有资源描述文件(Yaml)时,可以直接执行s sync将线上资源同步到本地;
  • 纯命令行形式(在没有资源描述 Yaml 文件时),需要根据需求,指定服务名信息,例如s cli sae sync --region cn-hangzhou --namespace-id cn-hanghzou --application-name test

权限与策略说明

使用该命令时,推荐配置系统策略:AliyunFCReadOnlyAccess