dx-cli
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseDX CLI
DX CLI
Use the CLI to manage your organization's Software Catalog, Scorecards, and Engineering data from the command line. All commands communicate with the DX web API and require authentication.
dx使用 CLI从命令行管理组织的软件目录、评分卡和工程数据。所有命令均与DX Web API通信,且需要身份验证。
dxGetting Help
获取帮助
Run to see all top-level commands. Run to see usage for any command:
dx --helpdx <subcommand> --helpdx --help
dx auth --help
dx catalog --help
dx catalog entities --help
dx catalog entityTypes --help
dx scorecards --help
dx studio --helpAll commands accept to return machine-readable JSON instead of human-readable output.
--json运行查看所有顶级命令。运行查看任意命令的使用方法:
dx --helpdx <子命令> --helpdx --help
dx auth --help
dx catalog --help
dx catalog entities --help
dx catalog entityTypes --help
dx scorecards --help
dx studio --help所有命令均支持参数,以返回机器可读的JSON格式,而非人类可读的输出。
--jsonAuthentication
身份验证
Before using any command, verify that you are authenticated:
dx auth statusIf this returns an error or shows that you are not logged in, stop and ask the user to run:
dx auth login --token <token>Tokens are DX web API tokens. They are scoped per DX instance base URL and stored locally.
使用任何命令之前,请验证您已完成身份验证:
dx auth status如果返回错误或显示未登录,请停止操作并让用户运行:
dx auth login --token <token>令牌为DX Web API令牌,其作用域基于DX实例的基础URL,并存储在本地。
Glossary
术语表
Software Catalog terms
软件目录术语
Entity — A record in the Software Catalog representing a service, team, library, or any other thing tracked by your organization. Each entity has an (a unique slug), a , optional , , , , and a map of typed .
identifiertypenamedescriptionowner_teamsowner_userspropertiesEntity Type — The schema for a category of entities (e.g. , ). An entity type defines which and entities of that type carry.
servicelibrarypropertiesaliasesProperty — A typed field defined on an entity type. Properties have identifiers and types such as , , , , , , , , , , and others. When setting properties with , use syntax; for and types, values are comma-separated.
textnumberbooleanselectmulti_selecturldateuserlistjson--propertykey=valuemulti_selectlistAlias — An alternative identifier that maps external system references (e.g. a GitHub repo slug) to an entity.
实体(Entity) — 软件目录中的一条记录,代表组织追踪的服务、团队、库或其他任何对象。每个实体拥有一个(唯一短标识)、一个、可选的、、、,以及一个类型化的映射。
identifiertypenamedescriptionowner_teamsowner_usersproperties实体类型(Entity Type) — 某一类实体的架构(例如、)。实体类型定义了该类型实体可携带的和。
servicelibrarypropertiesaliases属性(Property) — 定义在实体类型上的类型化字段。属性拥有标识和类型,例如、、、、、、、、、等。使用设置属性时,采用语法;对于和类型,值以逗号分隔。
textnumberbooleanselectmulti_selecturldateuserlistjson--propertykey=valuemulti_selectlist别名(Alias) — 替代标识,用于将外部系统引用(例如GitHub仓库短标识)映射到实体。
Scorecards terms
评分卡术语
Scorecard — A health-tracking framework that evaluates entities against a set of checks. Scorecards are either -based (entities are ranked across named levels like Bronze/Silver/Gold) or -based (entities accumulate points from checks). To see how a specific entity is currently performing across all scorecards, use .
LEVELPOINTSdx catalog entities scorecards <identifier>Check — A single SQL-based rule inside a scorecard. The SQL query returns a column (, , or ) for each entity.
statusPASSWARNFAILInitiative — A time-boxed project that groups failing scorecard checks into actionable tasks for teams. Tasks for a given entity can be fetched with .
dx catalog entities tasks <identifier>评分卡(Scorecard) — 一种健康追踪框架,通过一系列检查来评估实体。评分卡分为基于(实体按青铜/白银/黄金等命名等级排名)或基于(实体通过检查累积分数)两种类型。要查看特定实体在所有评分卡中的当前表现,可使用命令。
LEVELPOINTSdx catalog entities scorecards <identifier>检查(Check) — 评分卡内的一条基于SQL的规则。SQL查询会为每个实体返回一个列(值为、或)。
statusPASSWARNFAIL行动计划(Initiative) — 有时间限制的项目,将评分卡中未通过的检查分组为团队可执行的任务。可使用命令获取特定实体的任务。
dx catalog entities tasks <identifier>Reference Docs
参考文档
- Catalog management — Entities and entity types: listing, inspecting, creating, updating, and deleting.
- Scorecards management — Scorecards and checks: listing, inspecting, creating, updating, and deleting via YAML.
- 目录管理 — 实体与实体类型:列出、查看、创建、更新和删除。
- 评分卡管理 — 评分卡与检查:通过YAML进行列出、查看、创建、更新和删除。