Skip to content

Repository files navigation

cf-open

Open Cloudflare dashboard for your project from CLI.

Installation

go install github.com/mst-mkt/cf-open/cmd/cf-open@latest
nix profile install github:mst-mkt/cf-open

Usage

cf-open

This command reads Wrangler configuration (e.g., cloudflare.config.ts, wrangler.jsonc or wrangler.toml) to list resources related to your project. You can select the resource you want to open, and its dashboard will open in your browser.

$ cf-open
? Select a resource to open:
  ▸ Worker: worker-name
    Observability: worker-name
    R2: bucket-name
    D1: database-name (database-id)

If there is only one resource, it will open directly.

Reading cloudflare.config.ts requires Node.js v22.18.0 or later, as the file is evaluated with node from your PATH. Set CLOUDFLARE_ENV to choose the mode passed to a function-form config.

Options

Option Description
-c, --wrangler-config Path to the wrangler configuration file. Supports JSONC, TOML and TypeScript (experimental) formats.
--account-id Cloudflare account ID
-a, --all Open all resources in the browser
-p, --print Print URL to stdout instead of opening in browser
-v, --version Print the version number

Supported Resources

  • Workers
  • Workers Observability
  • Workers Cron Triggers
  • Queues
  • Workflows
  • Browser Rendering
  • VPC
  • R2 Object Storage
  • Worker KV
  • D1 SQL Databases
  • Pipelines
  • Vectorize
  • Secrets Store
  • Images

License

MIT License. See LICENSE for details.

References

Inspired by and references to

About

Open Cloudflare dashboard for your project from CLI.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages