wrangler preview [method] [body]
Preview your code temporarily on cloudflareworkers.com
Arguments
Name | Description |
---|
method | Type of request to preview your worker with (get, post)
[default: get] |
body | Body string to post to your preview worker request |
Options
Name | Description |
---|
-c, --config <wrangler.toml> | Path to configuration file [default: wrangler.toml] |
-e, --env <environment> | Environment to perform a command on |
-h, --help | Prints help information |
--verbose | Toggle verbose output (when applicable) |
--headless | Don't open the browser on preview |
--watch | Watch your project for changes and update the preview
automagically |
-u, --url | URL to open in the worker preview
[default: https://example.com] |