### Denoflare Worker Entry Script (TypeScript) Source: https://github.com/skymethod/denoflare-docs/blob/master/guides/serve.md An example TypeScript entry script for a Denoflare worker. It exports a default object with a `fetch` method that handles requests and returns a response. Includes basic error handling. ```ts export default { async fetch(request: Request, env: any) { try { return new Response('hi') } catch (e) { return new Response(e.message) } }, } ``` -------------------------------- ### Example Denoflare Configuration File (JSONC) Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/configuration.md This is an example of a .denoflare configuration file, demonstrating the structure for defining scripts and profiles. It includes comments and trailing commas, and shows how to define script configurations with bindings and options, as well as profiles for Cloudflare API token credentials. ```jsonc { // This jsonc file supports comments and trailing commas! // Optional schema to get auto-completions when editing this file in vscode, etc "$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/common/config.schema.json", // Define script configurations by name, and their associated bindings and options. // You can then simply refer to them by name in your denoflare commands. // Note the same script source can be specified more than once with different configurations (local vs prod etc). "scripts": { "script1-local": { "path": "/Users/me/path/to/script1.js", "bindings": { "foo": { "value": "bar" } }, "localPort": 3002 }, "script2-local": { "path": "/Users/me/path/to/script2.ts", "bindings": { "memoryNamespace": { "doNamespace": "local:MyDO" } }, "localPort": 8080 }, "script3-local": { "path": "/Users/me/path/to/script3.ts", "bindings": { "MyKV": { "kvNamespace": "351bddca004649b5a58c985b0gus86d5" }, "LocalHostAndPort": { "value": "localhost:${localPort}" } }, "localPort": 3031, "localHostname": "test.example.com", "localIsolation": "isolate" }, "script4-prod": { "path": "/Users/me/path/to/script4.ts", "bindings": { "version": { "value": "1.2.3" } }, "customDomains": [ "production.example.com" ] }, "script4-local": { "path": "/Users/me/path/to/script4.ts", // same script, different binding value "bindings": { "version": { "value": "local" } } } }, // Define one or more named profiles to specify Cloudflare API token credentials. // You can then refer to them by name in your denoflare commands, using --profile . // If no --profile is specified, the default profile will be used. // The default profile is either the only profile specified (as shown here), or the one marked with default: true // If you'd rather use environment variables instead of defining a profile in config, set CF_ACCOUNT_ID and CF_API_TOKEN. "profiles": { "account1": { "accountId": "4fc7a4becb8b41d887c5bb970b0guse1", "apiToken": "kAE-bogUs-_d8fkg2kkjc8dsftq63jda9kgs78" } } } ``` -------------------------------- ### Install Denoflare CLI Globally Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/index.md Installs the Denoflare CLI globally using the Deno install command. This command requires the --unstable-worker-options flag and grants all permissions (-A). ```shell deno install --global -A --unstable-worker-options --name denoflare --force \ https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/cli/cli.ts ``` -------------------------------- ### Denoflare Configuration (.denoflare) Source: https://github.com/skymethod/denoflare-docs/blob/master/guides/serve.md A JSONC configuration file for Denoflare. It defines scripts to run, including their paths and local ports, and Cloudflare profiles with account IDs and API tokens. ```jsonc { "$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/common/config.schema.json", "scripts": { "hello-local": { "path": "index.ts", "localPort": 3030 } }, "profiles": { "account1": { // your cloudflare account id "accountId": "", // your cloudflare api token "apiToken": "" } } } ``` -------------------------------- ### Denoflare R2 Analytics Example Usage Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/analytics/r2.md An example of how to use the `denoflare analytics r2` command to fetch R2 statistics for a specified date range. The output shows daily costs, storage, and egress data. ```cli $ dfd analytics r2 --start 2022-04-27 --end 2022-05-25 date class.a class.b egress storage total.cost 2022-04-27 67 $0.00 12 $0.00 1.0000gb $0.00 4.58gb $0.00 $0.00 2022-04-28 18 $0.00 18 $0.00 0.0000gb $0.00 1.02gb $0.00 $0.00 2022-04-30 642 $0.00 4 $0.00 0.0000gb $0.00 5.62gb $0.00 $0.01 2022-05-01 505 $0.00 0 $0.00 0.0000gb $0.00 5.28gb $0.00 $0.00 2022-05-09 14 $0.00 4 $0.00 0.0000gb $0.00 1.77gb $0.00 $0.00 2022-05-10 199 $0.00 68 $0.00 0.0184gb $0.00 28.27gb $0.01 $0.02 2022-05-11 424 $0.00 423 $0.00 0.0013gb $0.00 28.27gb $0.01 $0.02 2022-05-12 245 $0.00 389 $0.00 0.0000gb $0.00 28.27gb $0.01 $0.02 2022-05-13 0 $0.00 8 $0.00 0.0000gb $0.00 28.27gb $0.01 $0.01 2022-05-14 12 $0.00 14 $0.00 0.0000gb $0.00 28.27gb $0.01 $0.01 2022-05-15 11 $0.00 0 $0.00 0.0000gb $0.00 28.27gb $0.01 $0.01 2022-05-16 5 $0.00 4 $0.00 0.0000gb $0.00 28.27gb $0.01 $0.01 2022-05-17 14 $0.00 3 $0.00 0.0000gb $0.00 58.66gb $0.03 $0.03 2022-05-18 97 $0.00 52 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-19 129 $0.00 93 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-20 94 $0.00 139 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-21 114 $0.00 136 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-22 82 $0.00 57 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-23 65 $0.00 50 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-24 151 $0.00 147 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 2022-05-25 51 $0.00 91 $0.00 0.0000gb $0.00 58.68gb $0.03 $0.03 total 2939 $0.01 1712 $0.00 1.0197gb $0.00 $0.37 $0.39 est 30-day 4332 $0.02 2432 $0.00 1.5296gb $0.00 $0.51 $0.53 minus free $0.00 $0.00 $0.00 $0.36 $0.36 per bucket: cost storage objects egress bucket $0.23 33.73gb 16 1.0000gb beta $0.13 22.87gb 815 0.0000gb epsilon $0.02 2.01gb 25 0.0000gb delta $0.01 0.00gb 93 0.0017gb iota $0.00 0.02gb 11 0.0000gb theta $0.00 0.00gb 2 0.0000gb zeta $0.00 0.05gb 10 0.0180gb kappa $0.00 0.00gb 2 0.0000gb nu $0.00 0.00gb 0 0.0000gb gamma $0.00 0.00gb 1 0.0000gb alpha $0.00 0.00gb 0 0.0000gb eta $0.00 0.00gb 0 0.0000gb lambda $0.00 0.00gb 0 0.0000gb mu ``` -------------------------------- ### Run Denoflare CLI Directly Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/index.md Executes the Denoflare CLI directly using 'deno run' without prior installation. This method is suitable for CI builds or environments where global installation is not desired. ```shell deno run -A --unstable-worker-options \ https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/cli/cli.ts serve x ``` -------------------------------- ### Denoflare Analytics Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/analytics/index.md Displays the help information for the denoflare analytics command, outlining its usage, available subcommands (durable-objects, r2), and how to get subcommand-specific help. ```bash $ denoflare analytics --help denoflare-analytics 0.7.0 Dump stats via the Cloudflare GraphQL Analytics API USAGE: denoflare analytics SUBCOMMANDS: [durable-objects](/cli/analytics/durable-objects) Dump durable objects stats via the Cloudflare GraphQL Analytics API [r2](/cli/analytics/r2) Dump R2 stats via the Cloudflare GraphQL Analytics API For subcommand-specific help: denoflare analytics --help ``` -------------------------------- ### Configure Denoflare Site with JSONC Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/site/configuration.md Example configuration file in JSONC format for a Denoflare static site. This file supports comments and trailing commas, and can include schema definitions for editor auto-completion. ```jsonc { // This jsonc file supports comments and trailing commas! // optional schema to get auto-completions when editing this file in vscode, etc "$schema": "https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/cli/site/site_config.schema.json", "product": "FizzBuzz", "productSvg": "/images/logo-inline.svg", "productRepo": "my-org/fizzbuzz", "contentRepo": "my-org/fizzbuzz-docs", "themeColor": "#001122", "themeColorDark": "#223344", "siteMetadata": { "title": "FizzBuzz", "description": "Description for page metadata", "origin": "https://fizzbuzz.dev", "twitterUsername": "@fizzbuzz", "image": "/images/screenshot.v1.png", "imageAlt": "FizzBuzz screenshot", "faviconIco": "/images/favicon.2.ico", "faviconSvg": "/images/favicon.2.svg", "faviconMaskSvg": "/images/favicon.2.svg", "faviconMaskColor": "#334455", "manifest": { "name": "FizzBuzz (custom)", }, }, } ``` -------------------------------- ### Bundle R2 TypeScript API via Service Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/r2.md Shows how to obtain a bundled ESM module of the R2 TypeScript API using a bundle-as-a-service, useful if Deno is not installed locally. ```bash https://bundle.deno.dev/https://raw.githubusercontent.com/skymethod/denoflare/v0.7.0/common/r2/r2.ts ``` -------------------------------- ### Start R2 Multipart Upload Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/r2.md Initiates a multipart upload for an object in an R2 bucket. This command returns an upload ID that is required for subsequent operations like aborting or completing the upload. It accepts various optional parameters for metadata and request signing. ```bash $ denoflare r2 create-multipart-upload --help denoflare-r2-create-multipart-upload 0.7.0 Start a multipart upload and return an upload ID USAGE: denoflare r2 create-multipart-upload [OPTIONS] ARGS: Name of the R2 bucket Key of the object to upload OPTIONS: --cache-control Specify caching behavior along the request/reply chain --content-disposition Specify presentational information for the object --content-encoding Specify what content encodings have been applied to the object --content-language Specify the language the object is in --content-type A standard MIME type describing the format of the contents --expires The date and time at which the object is no longer cacheable --custom ... Custom metadata for the object --if-match Put the object only if its entity tag (ETag) is the same as the one specified --if-none-match Put the object only if its entity tag (ETag) is different from the one specified --if-modified-since Put the object only if it has been modified since the specified time --if-unmodified-since Put the object only if it has not been modified since the specified time --unsigned-payload If set, skip request body signing (and thus verification) for the R2 request --url-style URL addressing method used in request (one of: path, vhost, default: vhost) --config Path to config file (default: .denoflare in cwd or parents) --profile Explicit profile to use from config file --account-id Explicit Cloudflare account id to use for authentication --api-token Explicit Cloudflare API token to use for authentication --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### denoflare site serve --help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/site/serve.md Displays the help information for the `denoflare site serve` command. This includes usage instructions, available arguments like the repository directory, and options such as setting the local port, enabling watch mode, and toggling verbose output. ```shell $ denoflare site serve --help denoflare-site-serve 0.7.0 Host a static Cloudflare Pages site in a local Deno web server USAGE: denoflare site serve [OPTIONS] ARGS: Local path to the git repo to use as the source input OPTIONS: --port Local port to use for the http server (default: 8099) --watch If set, rebuild the site when file system changes are detected in --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare Site CLI Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/site/index.md Displays the help information for the `denoflare site` command, outlining its subcommands like 'generate' and 'serve', and providing usage instructions. ```bash $ denoflare site --help denoflare-site 0.7.0 Develop and deploy a static docs site to Cloudflare Pages USAGE: denoflare site SUBCOMMANDS: [generate](/cli/site/generate) Develop and deploy a static docs site to Cloudflare Pages [serve](/cli/site/serve) Host a static Cloudflare Pages site in a local Deno web server For subcommand-specific help: denoflare site --help ``` -------------------------------- ### denoflare ae-proxy Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/ae-proxy.md Displays the help information for the denoflare ae-proxy command, outlining its usage, available options, and their descriptions. This includes settings for port, authentication, configuration file path, Cloudflare account details, and verbosity. ```bash $ denoflare ae-proxy --help denoflare-ae-proxy 0.7.0 Host a proxy endpoint to Analytics Engine more compatible with Clickhouse plugins USAGE: denoflare ae-proxy [OPTIONS] OPTIONS: --port Local port to use (required) --basic Basic auth username/password to secure local proxy --config Path to config file (default: .denoflare in cwd or parents) --profile Explicit profile to use from config file --account-id Explicit Cloudflare account id to use for authentication --api-token Explicit Cloudflare API token to use for authentication --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare D1 CLI Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/d1.md Displays general help information for the denoflare D1 CLI, outlining available subcommands and their purposes. This is the entry point for understanding the D1 CLI's capabilities. ```bash $ denoflare d1 --help ``` -------------------------------- ### denoflare push-deploy Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/push-deploy.md Displays the help information for the denoflare push-deploy command, outlining its usage, arguments, and available options for uploading Cloudflare worker scripts to Deno Deploy. ```bash $ denoflare push-deploy --help denoflare-push-deploy 0.7.0 Upload a Cloudflare worker script to Deno Deploy USAGE: denoflare push-deploy [OPTIONS] ARGS: Name of script defined in .denoflare config, file path to bundled js worker, or an https url to a module-based worker .ts, e.g. https://path/to/worker.ts OPTIONS: --name Project name in Deno Deploy [default: Name of script defined in .denoflare config, or https url basename sans extension] --access-token Personal access token from the Deploy dashboard (or set DENO_DEPLOY_TOKEN env var) --watch If set, watch the local file system and automatically re-upload on script changes --watch-include ... If watching, watch this additional path as well (e.g. for dynamically-imported static resources) --text-binding ... Plain text environment variable binding, overrides config --secret-binding ... Secret text environment variable binding, overrides config --kv-namespace-binding ... KV namespace environment variable binding, overrides config --do-namespace-binding ... DO namespace environment variable binding, overrides config --wasm-module-binding ... Wasm module environment variable binding, overrides config --service-binding ... Service environment variable binding, overrides config --r2-bucket-binding ... R2 bucket environment variable binding, overrides config --ae-dataset-binding ... Analytics Engine dataset environment variable binding, overrides config --queue-binding ... Queue environment variable binding, overrides config --secret-key-binding --ratelimit-binding ... Ratelimit environment variable binding, overrides config --config Path to config file (default: .denoflare in cwd or parents) --bundle ... Advanced options used when emitting javascript bundles: backend=(process|module|esbuild), check=(all|local|none) --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare CLI: Get Queue Info Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches information about a specific queue. ```bash denoflare cfapi get-queue ``` -------------------------------- ### denoflare r2 CLI Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/r2.md Displays the main help information for the denoflare r2 command-line interface, outlining available subcommands for managing Cloudflare R2 storage. ```bash $ denoflare r2 --help denoflare-r2 0.7.0 Manage Cloudflare R2 storage using the S3 compatibility API USAGE: denoflare r2 SUBCOMMANDS: [list-buckets](/cli/r2#list-buckets) List all R2 buckets [head-bucket](/cli/r2#head-bucket) Determine if an R2 bucket exists [create-bucket](/cli/r2#create-bucket) Create a new R2 bucket [delete-bucket](/cli/r2#delete-bucket) Delete an R2 bucket [get-bucket-encryption](/cli/r2#get-bucket-encryption) Gets encryption config for a bucket [delete-bucket-encryption](/cli/r2#delete-bucket-encryption) Reset encryption config for a bucket [put-bucket-encryption](/cli/r2#put-bucket-encryption) Sets encryption config for a bucket [get-bucket-location](/cli/r2#get-bucket-location) Returns the region the bucket resides in [list-objects](/cli/r2#list-objects) List objects within an R2 bucket (list-objects-v2) [list-objects-v1](/cli/r2#list-objects-v1) List objects within a bucket (deprecated v1 version) [get-object](/cli/r2#get-object) Get R2 object for a given key [head-object](/cli/r2#head-object) Get R2 object (metadata only) for a given key [put-object](/cli/r2#put-object) Put R2 object for a given key [delete-object](/cli/r2#delete-object) Delete R2 object for a given key [delete-objects](/cli/r2#delete-objects) Delete R2 objects for the given keys [copy-object](/cli/r2#copy-object) Copy R2 object from a given source bucket and key [create-multipart-upload](/cli/r2#create-multipart-upload) Start a multipart upload and return an upload ID [abort-multipart-upload](/cli/r2#abort-multipart-upload) Abort an existing multipart upload [complete-multipart-upload](/cli/r2#complete-multipart-upload) Complete an existing multipart upload [upload-part](/cli/r2#upload-part) Upload part of a multipart upload [upload-part-copy](/cli/r2#upload-part-copy) Copy R2 part from a given source bucket and key [list-multipart-uploads](/cli/r2#list-multipart-uploads) List in-progress multipart uploads within an R2 bucket [generate-credentials](/cli/r2#generate-credentials) Generate private R2-looking credentials for any use [presign](/cli/r2#presign) Generate a presigned url for time-limited public access to a private R2 object For subcommand-specific help: denoflare r2 --help ``` -------------------------------- ### Denoflare CLI: Get Pub/Sub Broker Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches details for a specific Pub/Sub broker. ```bash denoflare cfapi get-pubsub-broker ``` -------------------------------- ### denoflare serve Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/serve.md Displays the help information for the `denoflare serve` command, outlining its usage, arguments, and available options for configuring the local worker environment. ```bash $ denoflare serve --help denoflare-serve 0.7.0 Run a Cloudflare worker script in a local Deno web server USAGE: denoflare serve [OPTIONS] ARGS: Name of script defined in .denoflare config, file path to bundled js worker, or an https url to a module-based worker .ts, e.g. https://path/to/worker.ts OPTIONS: --port Local port to use for the http(s) server (default: 8080) --cert-pem (required for https) Path to certificate file in pem format (contents start with -----BEGIN CERTIFICATE-----) --key-pem (required for https) Path to private key file in pem format (contents start with -----BEGIN PRIVATE KEY-----) --name Explicit script name to use from config file --watch-include ... Watch this additional path as well (e.g. for dynamically-imported static resources) --local-isolation Local isolation mode: use 'none' for debugging, disables sandbox and hot-reload (one of: isolate, none, default: isolate) --text-binding ... Plain text environment variable binding, overrides config --secret-binding ... Secret text environment variable binding, overrides config --kv-namespace-binding ... KV namespace environment variable binding, overrides config --do-namespace-binding ... DO namespace environment variable binding, overrides config --wasm-module-binding ... Wasm module environment variable binding, overrides config --service-binding ... Service environment variable binding, overrides config --r2-bucket-binding ... R2 bucket environment variable binding, overrides config --ae-dataset-binding ... Analytics Engine dataset environment variable binding, overrides config --queue-binding ... Queue environment variable binding, overrides config --secret-key-binding --ratelimit-binding ... Ratelimit environment variable binding, overrides config --config Path to config file (default: .denoflare in cwd or parents) --profile Explicit profile to use from config file --account-id Explicit Cloudflare account id to use for authentication --api-token Explicit Cloudflare API token to use for authentication --bundle ... Advanced options used when emitting javascript bundles: backend=(process|module|esbuild), check=(all|local|none) --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare CLI: Get User Info Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Retrieves information about the currently authenticated user. ```bash denoflare cfapi get-user ``` -------------------------------- ### Denoflare CLI: Get Account Details Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches detailed information about a specific Cloudflare account. ```bash denoflare cfapi get-account-details ``` -------------------------------- ### denoflare site generate Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/site/generate.md Displays the help information for the 'denoflare site generate' command, including its usage, arguments, and available options. ```bash $ denoflare site generate --help denoflare-site-generate 0.7.0 Develop and deploy a static docs site to Cloudflare Pages USAGE: denoflare site generate [OPTIONS] ARGS: Local path to the git repo to use as the source input for generation Local path to the directory to use for generated output OPTIONS: --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### denoflare r2 list-buckets CLI Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/r2.md Shows the help information for the `denoflare r2 list-buckets` command, detailing its usage and available options for listing R2 buckets. ```bash $ denoflare r2 list-buckets --help denoflare-r2-list-buckets 0.7.0 List all R2 buckets USAGE: denoflare r2 list-buckets [OPTIONS] OPTIONS: --unsigned-payload If set, skip request body signing (and thus verification) for the R2 request --config Path to config file (default: .denoflare in cwd or parents) --profile Explicit profile to use from config file --account-id Explicit Cloudflare account id to use for authentication --api-token Explicit Cloudflare API token to use for authentication --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare CLI: Get Pipeline Details Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches detailed information about an existing Cloudflare Workers Pipeline. ```bash denoflare cfapi get-pipeline ``` -------------------------------- ### Denoflare CLI: Get Worker Account Settings Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Retrieves the overall account settings for Cloudflare Workers. ```bash denoflare cfapi get-worker-account-settings ``` -------------------------------- ### denoflare push-lambda Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/push-lambda.md Displays the help information for the denoflare push-lambda command, outlining its usage, arguments, and available options for deploying Cloudflare worker scripts to AWS Lambda. ```bash $ denoflare push-lambda --help denoflare-push-lambda 0.7.0 Upload a Cloudflare worker script to AWS Lambda + public function URL USAGE: denoflare push-lambda [OPTIONS] ARGS: Name of script defined in .denoflare config, file path to bundled js worker, or an https url to a module-based worker .ts, e.g. https://path/to/worker.ts OPTIONS: --name Name to use for lambda function name [default: Name of script defined in .denoflare config, or https url basename sans extension] --role IAM role arn for the lambda function (e.g. arn:aws:iam::123412341234:role/my-lambda-role) --region AWS region (e.g. us-east-1) --architecture Lambda architecture (one of: x86, arm) --memory Memory for the lambda function, in MB (default: 128) (min: 128, max: 10240) --storage Size of the /tmp directory for the lambda function, in MB (default: 512) (min: 512, max: 10240) --timeout How long the lambda function is allowed to run, in seconds (default: 3) (min: 1, max: 900) --no-layer Skip creating a layer, deploy the lambda as one large zip (slower for multiple pushes) --deno-version Explicit deno version to use on lambda (default: Deno.version.deno) --profile AWS credentials for deploying the worker, from $HOME/.aws/credentials --access-key AWS credentials for deploying the worker (e.g. AKIA4ABC89ABC89ABC89) --secret-key AWS credentials for deploying the worker (e.g. aB98mjz0aB98mjz0aB98mjz0aB98mjz0aB98mjz0) --watch If set, watch the local file system and automatically re-upload on script changes --watch-include ... If watching, watch this additional path as well (e.g. for dynamically-imported static resources) --text-binding ... Plain text environment variable binding, overrides config --secret-binding ... Secret text environment variable binding, overrides config --kv-namespace-binding ... KV namespace environment variable binding, overrides config --do-namespace-binding ... DO namespace environment variable binding, overrides config --wasm-module-binding ... Wasm module environment variable binding, overrides config --service-binding ... Service environment variable binding, overrides config --r2-bucket-binding ... R2 bucket environment variable binding, overrides config --ae-dataset-binding ... Analytics Engine dataset environment variable binding, overrides config --queue-binding ... Queue environment variable binding, overrides config --secret-key-binding ... Secret key environment variable binding, overrides config --ratelimit-binding ... Ratelimit environment variable binding, overrides config --config Path to config file (default: .denoflare in cwd or parents) --bundle ... Advanced options used when emitting javascript bundles: backend=(process|module|esbuild), check=(all|local|none) --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### denoflare push-supabase Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/push-supabase.md Displays the help information for the denoflare push-supabase command, outlining its usage, arguments, and available options for uploading worker scripts to Supabase Edge Functions. ```bash $ denoflare push-supabase --help denoflare-push-supabase 0.7.0 Upload a Cloudflare worker script to Supabase Edge Functions USAGE: denoflare push-supabase [OPTIONS] ARGS: Name of script defined in .denoflare config, file path to bundled js worker, or an https url to a module-based worker .ts, e.g. https://path/to/worker.ts OPTIONS: --name Slug name of the Supabase Edge Function [default: Name of script defined in .denoflare config, or https url basename sans extension] --access-token Supabase Personal token, from the Supabase dashboard > account > access tokens (or set SUPABASE_ACCESS_TOKEN env var) --project-ref <20-char unique id> Supabase project reference (e.g. abcdwxyzabcdwxyzabcd) (or set SUPABASE_PROJECT_ID env var) --watch If set, watch the local file system and automatically re-upload on script changes --watch-include ... If watching, watch this additional path as well (e.g. for dynamically-imported static resources) --text-binding ... Plain text environment variable binding, overrides config --secret-binding ... Secret text environment variable binding, overrides config --kv-namespace-binding ... KV namespace environment variable binding, overrides config --do-namespace-binding ... DO namespace environment variable binding, overrides config --wasm-module-binding ... Wasm module environment variable binding, overrides config --service-binding ... Service environment variable binding, overrides config --r2-bucket-binding ... R2 bucket environment variable binding, overrides config --ae-dataset-binding ... Analytics Engine dataset environment variable binding, overrides config --queue-binding ... Queue environment variable binding, overrides config --secret-key-binding --ratelimit-binding ... Ratelimit environment variable binding, overrides config --config Path to config file (default: .denoflare in cwd or parents) --bundle ... Advanced options used when emitting javascript bundles: backend=(process|module|esbuild), check=(all|local|none) --help Print help information --verbose Toggle verbose output (when applicable) ``` -------------------------------- ### Denoflare CLI: Get R2 Bucket Usage Summary Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches a summary of the storage usage for your R2 buckets. ```bash denoflare cfapi get-bucket-usage-summary ``` -------------------------------- ### Denoflare CLI: Get KV Value Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Retrieves the value associated with a specific key from a Cloudflare Workers KV namespace. ```bash denoflare cfapi get-key-value ``` -------------------------------- ### Denoflare CLI: Get Workers Subdomain Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Fetches the name of your account-level workers.dev subdomain, which is used for deploying and accessing your Workers. ```bash denoflare cfapi get-workers-subdomain ``` -------------------------------- ### Denoflare CLI Help Output Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/index.md Displays the help information for the Denoflare CLI, version 0.7.0. It outlines the basic usage, available commands, and provides guidance on accessing command-specific help. ```shell $ denoflare --help denoflare 0.7.0 USAGE: denoflare COMMANDS: [serve](/cli/serve) Run a Cloudflare worker script in a local Deno web server [push](/cli/push) Upload a Cloudflare worker script to Cloudflare [push-lambda](/cli/push-lambda) Upload a Cloudflare worker script to AWS Lambda + public function URL [push-deploy](/cli/push-deploy) Upload a Cloudflare worker script to Deno Deploy [push-supabase](/cli/push-supabase) Upload a Cloudflare worker script to Supabase Edge Functions [tail](/cli/tail) View a real-time stream of logs from a published Cloudflare worker [site](/cli/site) Develop and deploy a static docs site to Cloudflare Pages [analytics](/cli/analytics) Dump stats via the Cloudflare GraphQL Analytics API [cfapi](/cli/cfapi) Call the Cloudflare REST API [r2](/cli/r2) Manage Cloudflare R2 storage using the S3 compatibility API [pubsub](/cli/pubsub) Interact with your Cloudflare Pub/Sub broker [d1](/cli/d1) Manage and query your Cloudflare D1 databases [ae-proxy](/cli/ae-proxy) Host a proxy endpoint to Analytics Engine more compatible with Clickhouse plugins version Dump cli version For command-specific help: denoflare --help ``` -------------------------------- ### Denoflare CLI: Get Worker Script Settings Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/cfapi.md Retrieves the current settings for a specific Worker script. This can include configuration details and metadata. ```bash denoflare cfapi get-script-settings ``` -------------------------------- ### Denoflare R2 Analytics CLI Help Source: https://github.com/skymethod/denoflare-docs/blob/master/cli/analytics/r2.md Displays the help information for the `denoflare analytics r2` command, outlining available options for querying R2 bucket statistics. ```cli $ denoflare analytics r2 --help denoflare-analytics-r2 0.7.0 Dump R2 stats via the Cloudflare GraphQL Analytics API USAGE: denoflare analytics r2 [OPTIONS] OPTIONS: --bucket Filter to single R2 bucket --start Start of the analysis range (inclusive) --end End of the analysis range (inclusive) --budget If set, dump GraphQL API request budget --config Path to config file (default: .denoflare in cwd or parents) --profile Explicit profile to use from config file --account-id Explicit Cloudflare account id to use for authentication --api-token Explicit Cloudflare API token to use for authentication --help Print help information --verbose Toggle verbose output (when applicable) ```