cfd1

module
v0.0.0-...-5a980fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2024 License: MIT

README

D1

An alternative to Cloudflare Wrangler D1 command line tool.

Prerequisites

Please install the latest version of the Go toolchain.

Installation

go install github.com/booskz/cfd1/cmd/d1@latest

Usage

Make sure to set the following environment variables:

  • CLOUDFLARE_API_TOKEN: An API token created from the Cloudflare dashboard. Navigate to My Profile > API Tokens.
  • CLOUDFLARE_ACCOUNT_ID: Your account ID displayed on the Cloudflare dashboard.
  • CLOUDFLARE_D1_LOCATION: The location hint, such as "apac".

Motivation

The official Wrangler command occasionally returns the error message "fetch failed." I believe this could be a network issue rather than a problem with the Wrangler implementation. However, since the Wrangler command is under frequent development, there is a possibility that it could be an implementation problem. This is why I implement another d1 command line tool.

License

MIT

Directories

Path Synopsis
cmd
d1
msi
cli
d1

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL