Skip to content

Migrate your Wrangler configuration from TOML to JSONC syntax.

License

Notifications You must be signed in to change notification settings

jalmonter/wrangler-cfg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

⛅️⚙️ wrangler-cfg

npm

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:

  1. Navigate to Your Project's Root Directory
    Make sure you are in the directory that contains your wrangler.toml file.

  2. Migrate the Configuration
    Run the following command to output the migrated JSONC configuration:

npx wrangler-cfg migrate --to=jsonc
  1. Save the Migrated Configuration (Optional) If you want to automatically create a wrangler.jsonc file in your project, run:
npx wrangler-cfg migrate --to=jsonc --save

About

Migrate your Wrangler configuration from TOML to JSONC syntax.

Topics

Resources

License

Stars

Watchers

Forks

Contributors