Skip to content

Commit a3360c9

Browse files
Update docs for 0.7.0 release.
1 parent 4eb57a2 commit a3360c9

30 files changed

+382
-148
lines changed

build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
DENO_VERSION="v1.40.2"
3-
DENOFLARE_VERSION="v0.6.0"
2+
DENO_VERSION="v1.46.3"
3+
DENOFLARE_VERSION="v0.7.0"
44
curl -fsSL https://deno.land/x/install/install.sh | DENO_INSTALL=./deno-$DENO_VERSION sh -s $DENO_VERSION
55
NO_COLOR=1 DENO_VERSION=$DENO_VERSION DENOFLARE_VERSION=${DENOFLARE_VERSION} ./deno-$DENO_VERSION/bin/deno run --allow-all https://raw.githubusercontent.com/skymethod/denoflare/$DENOFLARE_VERSION/cli/cli.ts site generate . ./output --verbose

cli/ae-proxy.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Host a proxy endpoint to Analytics Engine more compatible with Clickhouse plugin
1010
## --help
1111
```
1212
$ denoflare ae-proxy --help
13-
denoflare-ae-proxy 0.6.0
13+
denoflare-ae-proxy 0.7.0
1414
1515
Host a proxy endpoint to Analytics Engine more compatible with Clickhouse plugins
1616

cli/analytics/durable-objects.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Dump durable objects stats via the Cloudflare GraphQL Analytics API
1111
## --help
1212
```
1313
$ denoflare analytics durable-objects --help
14-
denoflare-analytics-durable-objects 0.6.0
14+
denoflare-analytics-durable-objects 0.7.0
1515
1616
Dump durable objects stats via the Cloudflare GraphQL Analytics API
1717

cli/analytics/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Dump stats via the Cloudflare GraphQL Analytics API
1010
## --help
1111
```
1212
$ denoflare analytics --help
13-
denoflare-analytics 0.6.0
13+
denoflare-analytics 0.7.0
1414
1515
Dump stats via the Cloudflare GraphQL Analytics API
1616

cli/analytics/r2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Dump R2 stats via the Cloudflare GraphQL Analytics API
1111
## --help
1212
```
1313
$ denoflare analytics r2 --help
14-
denoflare-analytics-r2 0.6.0
14+
denoflare-analytics-r2 0.7.0
1515
1616
Dump R2 stats via the Cloudflare GraphQL Analytics API
1717

cli/cfapi.md

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Call the Cloudflare REST API
1010
## --help
1111
```
1212
$ denoflare cfapi --help
13-
denoflare-cfapi 0.6.0
13+
denoflare-cfapi 0.7.0
1414
1515
Call the Cloudflare REST API
1616
@@ -19,6 +19,7 @@ USAGE:
1919
2020
SUBCOMMANDS:
2121
list-scripts List Worker scripts
22+
get-script-settings Get Worker script settings
2223
get-workers-subdomain Get the name of your account-level workers.dev subdomain
2324
get-worker-account-settings Get worker account settings
2425
put-worker-account-settings Set worker account settings
@@ -29,6 +30,8 @@ SUBCOMMANDS:
2930
get-key-value Get KV value
3031
list-keys List a KV namespace's keys
3132
list-kv-namespaces List KV namespaces
33+
query-kv-request-analytics Query KV request metrics
34+
query-kv-storage-analytics Query KV storage metrics
3235
3336
get-worker-service-subdomain-enabled Get whether or not the workers.dev route is enabled for a given worker service
3437
enable-worker-service-subdomain Enable the workers.dev route for a given worker service
@@ -42,6 +45,15 @@ SUBCOMMANDS:
4245
create-bucket Create a new R2 bucket
4346
delete-bucket Delete a R2 bucket
4447
get-bucket-usage-summary Get R2 Bucket usage summary
48+
list-event-notification-rules List all event notification rules for an R2 bucket
49+
create-event-notification-rule Create an event notification rule for an R2 bucket
50+
delete-event-notification-rule Delete an event notification rule for an R2 bucket
51+
52+
list-pipelines List pipelines
53+
create-pipeline Create a pipeline
54+
get-pipeline Get details for an existing pipeline
55+
update-pipeline Update an existing pipeline
56+
delete-pipeline Delete an existing pipeline
4557
4658
verify-token Verify an api token
4759
list-memberships List memberships
@@ -65,9 +77,29 @@ SUBCOMMANDS:
6577
list-pubsub-revocations List revocations for a Pub/Sub broker
6678
delete-pubsub-revocations Delete revocations for a Pub/Sub broker
6779
80+
list-queues Returns the queues owned by an account
81+
create-queue Creates a new queue
82+
get-queue Get information about a specific queue
83+
update-queue Update a queue, does not support partial updates
84+
delete-queue Deletes a queue
85+
create-queue-consumer Creates a new consumer for a queue
86+
list-queue-consumers List consumers for a queue
87+
update-queue-consumer Update an existing queue consumer
88+
delete-queue-consumer Delete a queue consumer
89+
pull-queue-messages Pulls queue messages
90+
ack-queue-messages Acknowledge or retry queue messages
91+
preview-queue-messages Preview queue messages
92+
send-queue-message Send queue message
93+
6894
create-logpush-job Create a Logpush job
6995
update-logpush-job Update a Logpush job
7096
delete-logpush-job Delete a Logpush job
97+
98+
list-ai-models List available AI models
99+
run-ai-model Run a specific AI model on-demand
100+
101+
list-zone-rulesets List rulesets for a zone
102+
create-custom-error-response Create a custom error rule for a zone
71103
72104
For subcommand-specific help: denoflare cfapi <subcommand> --help
73105
```

cli/configuration.md

Lines changed: 38 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There are two ways to use the Denoflare CLI with a configuration file:
2424
// This jsonc file supports comments and trailing commas!
2525

2626
// Optional schema to get auto-completions when editing this file in vscode, etc
27-
"$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.6.0/common/config.schema.json",
27+
"$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/common/config.schema.json",
2828

2929
// Define script configurations by name, and their associated bindings and options.
3030
// You can then simply refer to them by name in your denoflare commands.
@@ -137,12 +137,12 @@ export interface Script {
137137
readonly localPort?: number;
138138

139139
/** If specified, replace the hostname portion of the incoming `Request.url` at runtime to use this hostname instead of `localhost`.
140-
*
140+
*
141141
* Useful if your worker does hostname-based routing. */
142142
readonly localHostname?: string;
143143

144144
/** If specified, use this isolation level when running `serve`, the local dev server.
145-
*
145+
*
146146
* (Default: 'isolate') */
147147
readonly localIsolation?: Isolation;
148148

@@ -153,7 +153,7 @@ export interface Script {
153153
readonly localKeyPem?: string;
154154

155155
/** If specified, use a specific, named Profile defined in `config.profiles`.
156-
*
156+
*
157157
* (Default: the Profile marked as `default`, or the only Profile defined) */
158158
readonly profile?: string;
159159

@@ -171,6 +171,40 @@ export interface Script {
171171

172172
/** If specified, enable or disable the workers.dev route for this worker when deploying to Cloudflare. */
173173
readonly workersDev?: boolean;
174+
175+
/** If specified, enable or disable logpush for this worker.
176+
*
177+
* See https://blog.cloudflare.com/workers-logpush-ga/
178+
*/
179+
readonly logpush?: boolean;
180+
181+
/** If specified, the specific compatibility environment for this worker.
182+
*
183+
* See https://developers.cloudflare.com/workers/platform/compatibility-dates/ */
184+
readonly compatibilityDate?: string;
185+
186+
/** If specified, the specific compatibility flags for this worker.
187+
*
188+
* See https://developers.cloudflare.com/workers/platform/compatibility-dates/#compatibility-flags */
189+
readonly compatibilityFlags?: string[];
190+
191+
/** Whether or not observability is enabled for this worker. */
192+
readonly observability?: boolean;
193+
194+
/** Observability sample rate, from 0 to 1 (100%, default) */
195+
readonly observabilitySampleRate?: number;
196+
197+
/** Maximum CPU time this worker is allowed to run, in milliseconds. default = 30000 (30 seconds) */
198+
readonly cpuLimit?: number;
199+
200+
/** Name-value pairs to use when pushing to AWS Lambda. */
201+
readonly lambda?: string;
202+
203+
/** Name-value pairs to use when pushing to Deno Deploy. */
204+
readonly deploy?: string;
205+
206+
/** Name-value pairs to use when pushing to Supabase Edge Functions. */
207+
readonly supabase?: string;
174208
}
175209

176210
/** Code isolation to use when running worker scripts with `serve`, the local dev server.

0 commit comments

Comments
 (0)