Skip to main content

CLI Usage

npx webpod [task] [hostname] <...options>

The webpod CLI is used to deploy your app to Webpod. It takes arguments and options to configure your deployment. The CLI supports all options from API Reference.

For example, to deploy a static site in build directory, you can specify uploadDir and publicDir options:

npx webpod --uploadDir=build --publicDir=.

The webpod CLI takes two optional arguments: task and hostname. If the task is omitted, the CLI will run the default task. If the hostname is omitted, the CLI will prompt you to type it.

For example, to only deploy without provisioning a server, you can run:

npx webpod deploy example.com