JoYiHubv0.30.0

project listing cover

Replace the primary 16:9 Cover and paired 4:3 mobile Cover

语法

joyihub project listing cover <file>

参数

位置参数

属性

类型

选项

属性

类型

示例

joyihub project listing cover ./cover.png --mobile-cover ./cover-mobile.png --project project-id

响应示例

{
  "created_at": "2026-09-08T00:00:00Z",
  "height": 720,
  "id": "cover-id",
  "mime_type": "image/png",
  "position": 0,
  "release_id": "release-id",
  "variants": {
    "mobile_webp": [],
    "social": {},
    "webp": []
  },
  "width": 1280
}

返回字段

属性

类型

错误码

NOT_AUTHENTICATED · Exit 3

本机没有有效 CLI 登录凭据

{
  "error": {
    "code": "NOT_AUTHENTICATED",
    "message": "本机没有有效 CLI 登录凭据"
  }
}

UNAUTHORIZED · Exit 3

服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务

{
  "error": {
    "code": "UNAUTHORIZED",
    "message": "服务端拒绝无效、过期或已撤销的凭据;重新登录后恢复任务"
  }
}

FORBIDDEN · Exit 3

当前账号缺少服务端权限

{
  "error": {
    "code": "FORBIDDEN",
    "message": "当前账号缺少服务端权限"
  }
}

CLIENT_TOO_OLD · Exit 4

服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新

{
  "error": {
    "code": "CLIENT_TOO_OLD",
    "message": "服务端明确拒绝低于最低支持版本的客户端;使用 joyihub update 更新"
  }
}

USAGE_ERROR · Exit 2

参数、取值或本地输入不合法

{
  "error": {
    "code": "USAGE_ERROR",
    "message": "参数、取值或本地输入不合法"
  }
}

本页目录