> ## Documentation Index
> Fetch the complete documentation index at: https://docs.shipthing.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 添加包

> 学习如何向你的ShipThing工作区添加包。

<Warning>
  高级主题

  这是一个高级主题 - 只有在确定要在你的ShipThing应用中添加新包而不是在apps/web中添加文件夹或修改packages下的现有包时，才应遵循这些说明。你不需要这样做来添加新页面或组件。
</Warning>

## 生成新包

在根目录中输入以下命令来创建一个新包：

```sh Terminal theme={"system"}
npx turbo gen init
```

## 在应用中使用包

现在你可以通过使用包名导入来在你的应用中使用该包：

```tsx apps/web/app/page.tsx theme={"system"}
import { example } from "@repo/example";
 
console.log(example());
```
