wrangler-cfg
v1.0.2
Published
Migrate your Wrangler configuration from TOML to JSON[C] syntax.
Downloads
21
Maintainers
Readme
wrangler-cfg is a CLI tool that migrates Cloudflare Workers configuration files from TOML to JSONC.
⚠️ Ensure your project uses wrangler version 3.91.0 or later. ⚠️
Quick Start Guide
Follow these steps to migrate your configuration to JSONC:
Navigate to Your Project's Root Directory
Make sure you are in the directory that contains yourwrangler.tomlfile.Migrate the Configuration
Run the following command to output the migrated JSONC configuration:
npx wrangler-cfg migrate --to=jsonc- Save the Migrated Configuration (Optional)
If you want to automatically create a
wrangler.jsoncfile in your project, run:
npx wrangler-cfg migrate --to=jsonc --save