wrangler preview [method] [body]

Preview your code temporarily on cloudflareworkers.com

Arguments

NameDescription
methodType of request to preview your worker with (get, post) [default: get]
bodyBody string to post to your preview worker request

Options

NameDescription
-c, --config <wrangler.toml>Path to configuration file [default: wrangler.toml]
-e, --env <environment>Environment to perform a command on
-h, --helpPrints help information
--verboseToggle verbose output (when applicable)
--headlessDon't open the browser on preview
--watchWatch your project for changes and update the preview automagically
-u, --urlURL to open in the worker preview [default: https://example.com]