
Security News
Software Engineering Daily Podcast: Feross on AI, Open Source, and Supply Chain Risk
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.
@askcodebase/wrangler
Advanced tools
wrangler is a command line tool for building Cloudflare Workers.
# Make a javascript file
echo "export default { fetch() { return new Response('hello world') } }" > index.js
# try it out
npx wrangler dev index.js
# and then deploy it
npx wrangler deploy index.js --name my-worker
# visit https://my-worker.<your workers subdomain>.workers.dev
# Generate a new project
npx wrangler init my-worker --no-delegate-c3
# try it out
cd my-worker && npm run start
# and then deploy it
npm run deploy
$ npm install wrangler --save-dev
Wrangler is configured via a wrangler.toml file in the project root. When utilizing the wrangler init command, a wrangler.toml file will be created for you.
Example:
name = "my-worker"
main = "./src/index.ts" # init w/ TypeScript
compatibility_date = "YYYY-MM-DD"
For more detailed information about configuration, refer to the documentation.
wrangler init [name]Creates a Worker project. For details on configuration keys and values, refer to the documentation.
wrangler devStart a local development server, with live reloading and devtools.
wrangler deployPublish the given script to the worldwide Cloudflare network.
For more commands and options, refer to the documentation.
wrangler pages dev [directory] [-- command]Either serves a static build asset directory, or proxies itself in front of a command.
Builds and runs functions from a ./functions directory or uses a _worker.js file inside the static build asset directory.
For more commands and options, refer to the documentation or run wrangler pages dev --help.
For the latest Wrangler documentation, click here.
FAQs
Command-line interface for all things Cloudflare Workers
The npm package @askcodebase/wrangler receives a total of 2 weekly downloads. As such, @askcodebase/wrangler popularity was classified as not popular.
We found that @askcodebase/wrangler demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.

Security News
GitHub has revoked npm classic tokens for publishing; maintainers must migrate, but OpenJS warns OIDC trusted publishing still has risky gaps for critical projects.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.