Skip to content

The open alternative to Salesforce, designed for AI.

1.5 KB
Raw Blame
---
title: 概览
description: 构建、测试并发布你的应用——CLI 命令、集成测试、CI,以及发布到服务器或 npm。
---

**运维层**指的是你对应用*进行*而不是*使用*它所做的一切:调用 CLI 命令、针对真实的 Twenty 服务器运行集成测试、配置 CI,以及发布发行版——可以是部署到单个服务器的 tarball,也可以是发布到应用市场中列出的 npm 包。

```text
   develop ─▶ test ─▶ build ─▶ deploy / publish
   ───────    ────    ─────    ─────────────────
   yarn       yarn    yarn     yarn twenty app:publish --private  (tarball → one server)
   twenty     test    twenty
   dev                dev:build    yarn twenty app:publish         (npm → marketplace)
```

## 本节内容

<CardGroup cols={2}>
  <Card title="CLI" icon="terminal" href="/zh/developers/extend/apps/operations/cli">
    `yarn twenty` 参考——exec、logs、uninstall、remotes。
  </Card>
  <Card title="同步与恢复" icon="compass" href="/zh/developers/extend/apps/operations/sync-and-recovery">
    在阅读同步差异时应使用哪些命令,以及分步恢复流程。
  </Card>
  <Card title="测试" icon="flask" href="/zh/developers/extend/apps/operations/testing">
    Vitest 配置、集成测试、类型检查、CI 工作流。
  </Card>
  <Card title="发布" icon="upload" href="/zh/developers/extend/apps/operations/publishing">
    构建、部署 tarball、发布到 npm、安装。
  </Card>
</CardGroup>