Add cli deployment docs (#3239)

This commit is contained in:
Reynaldi Chernando
2026-06-10 00:40:19 +07:00
committed by GitHub
parent a8cfaeefbd
commit ee37be16f0
2 changed files with 40 additions and 0 deletions
+20
View File
@@ -173,6 +173,26 @@ The quickest way to publish a worker is to create it on [puter.com](https://pute
</li>
</ol>
### Deploy with the Puter CLI
You can also deploy straight from the terminal with the [Puter CLI](https://www.npmjs.com/package/@heyputer/cli).
Install it globally:
```
npm install -g @heyputer/cli
```
Then deploy your worker's JavaScript file to a `*.puter.work` subdomain:
```
puter worker deploy [file] [name]
```
Both arguments are optional — run `puter worker deploy` with no arguments and the CLI prompts you for the file and worker name.
<div class="info">The Puter CLI is currently in beta (0.x), so commands and behavior may change.</div>
### Automate with GitHub Actions
If your worker's code lives on GitHub, you can redeploy it automatically on every push using the [Puter Worker Deploy Action](https://github.com/HeyPuter/puter-worker-deploy-action).
+20
View File
@@ -50,6 +50,26 @@ The quickest way to publish a website is to upload it on [puter.com](https://put
</li>
</ol>
### Deploy with the Puter CLI
You can also deploy straight from the terminal with the [Puter CLI](https://www.npmjs.com/package/@heyputer/cli).
Install it globally:
```
npm install -g @heyputer/cli
```
Then deploy your site's directory to a `*.puter.site` subdomain:
```
puter site deploy [dir] [subdomain]
```
Both arguments are optional — run `puter site deploy` with no arguments and the CLI prompts you for the directory and subdomain.
<div class="info">The Puter CLI is currently in beta (0.x), so commands and behavior may change.</div>
### Automate with GitHub Actions
If your code lives on GitHub, you can redeploy your site automatically on every push using the [Puter Subdomain Deploy Action](https://github.com/HeyPuter/puter-subdomain-deploy-action).