Skip to content

Commit 0f89b74

Browse files
committed
Updated wrangler instructions
Use C3 CLI and `wrangler deploy`.
1 parent 8f18e4b commit 0f89b74

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
66

77
## [Unreleased]
88

9-
- Fixed comments around RCLONE_DOWNLOAD in wrangler.toml.template ([@jingyuanliang](https://github.com/jingyuanliang/))
9+
* Fixed comments around RCLONE_DOWNLOAD in wrangler.toml.template ([@jingyuanliang](https://github.com/jingyuanliang/))
10+
*
1011

1112
## [1.2.0] - 2024-10-09
1213

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -154,15 +154,17 @@ Since the bucket is private, the Cloudflare Worker signs each request to Backbla
154154

155155
## Wrangler
156156

157-
You can use this repository as a template for your own worker using [`wrangler`](https://github.com/cloudflare/wrangler):
157+
Ensure you are using the latest version of [`wrangler`](https://developers.cloudflare.com/workers/wrangler/), since several commands have been replaced between versions.
158+
159+
You can use this repository as a template for your own worker using [Cloudflare's C3 CLI](https://developers.cloudflare.com/pages/get-started/c3/):
158160

159161
```bash
160-
wrangler generate projectname https://github.com/backblaze-b2-samples/cloudflare-b2
162+
npm create cloudflare@latest -- --template https://github.com/backblaze-b2-samples/cloudflare-b2 --deploy false projectname
161163
```
162164

163-
## Serverless
165+
If you wish to create a GitHub repository for your worker, it's best to do so now, before you make any changes.
164166

165-
To deploy using serverless add a [`serverless.yml`](https://serverless.com/framework/docs/providers/cloudflare/) file.
167+
Note that you must run `npm install` before you deploy the worker to Cloudflare. Once you have done so, you can run `npx wrangler deploy`.
166168

167169
## Range Requests
168170

0 commit comments

Comments
 (0)