> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# 批次轉移專案擁有權

```bash wrap theme={null}
# email based
toolkit$ bin/run-script modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=alice@example.com --to-user=bob@example.com

# user-id based
tookit$ bin/run-script modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=68880f000000000000000000 --to-user=68880f000000000000000001

# Legacy docker-compose.yml setup:
$ docker exec sharelatex /bin/bash -c "source /etc/overleaf/env.sh && source /etc/container_environment.sh && cd /overleaf/services/web && node ./modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=alice@example.com --to-user=bob@example.com"
```

## 旗標

| 名稱 | 說明 |
| - | - |
| `--from-user` | 目前專案擁有者的電子郵件或使用者 ID |
| `--to-user` | 新專案擁有者的電子郵件或使用者 ID |

## 完成

若指令碼因錯誤而提前終止，會印出錯誤並以代碼 1 結束，表示執行失敗。

若遷移成功完成，會印出「Done」並以代碼 0 結束。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.