导出和导入工作流#
¥Export and import workflows
n8n 会以 JSON 格式保存工作流。你可以将工作流导出为 JSON 文件,或将 JSON 文件导入到你的 n8n 库中。你可以通过多种方式导出和导入工作流。
¥n8n saves workflows in JSON format. You can export your workflows as JSON files or import JSON files into your n8n library. You can export and import workflows in several ways.
Sharing credentials
Exported workflow JSON files include credential names and IDs. While IDs aren't sensitive, the names could be, depending on how you name your credentials. HTTP Request nodes may contain authentication headers when imported from cURL. Remove or anonymize this information from the JSON file before sharing to protect your credentials.
复制粘贴#
¥Copy-Paste
你可以通过选择要复制到剪贴板的节点(Ctrl + c 或 cmd +c),然后将其粘贴(Ctrl + v 或 cmd + v)到编辑器 UI 中,来复制和粘贴整个工作流或其部分内容。
¥You can copy and paste a workflow or parts of it by selecting the nodes you want to copy to the clipboard (Ctrl + c or cmd +c) and pasting it (Ctrl + v or cmd + v) into the Editor UI.
要选择所有节点或一组节点,请单击并拖动:
¥To select all nodes or a group of nodes, click and drag:
从编辑器 UI 菜单#
¥From the Editor UI menu
从顶部导航栏右上角选择三个点
,即可看到以下选项:
¥From the top navigation bar, select the three dots in the upper right
to see the following options:

- 下载:将你当前的工作流程以 JSON 文件的形式下载到你的计算机。
¥Download: Downloads your current workflow as a JSON file to your computer.
- 从 URL 导入:从 URL(例如 GitHub 上的此工作流 JSON 文件)导入工作流 JSON。
¥Import from URL: Imports workflow JSON from a URL, for example, this workflow JSON file on GitHub.
- 从文件导入:从你的计算机导入工作流(JSON 文件)。
¥Import from File: Imports a workflow as a JSON file from your computer.
从命令行#
¥From the command line
- 导出:请参阅 完整命令列表 文档了解如何导出工作流或凭据。
¥Export: See the full list of commands for exporting workflows or credentials.
- 导入:请参阅 完整命令列表 文档了解如何导入工作流或凭据。
¥Import: See the full list of commands for importing workflows or credentials.
