https://github.com/hasundue/kvtool
CLI utility for Cloudflare Workers KV
https://github.com/hasundue/kvtool
cli cloudflare deno
Last synced: 7 months ago
JSON representation
CLI utility for Cloudflare Workers KV
- Host: GitHub
- URL: https://github.com/hasundue/kvtool
- Owner: hasundue
- License: mit
- Created: 2022-04-20T08:34:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-27T04:27:53.000Z (almost 4 years ago)
- Last Synced: 2025-06-23T11:08:07.022Z (8 months ago)
- Topics: cli, cloudflare, deno
- Language: TypeScript
- Homepage: https://deno.land/x/kvtool
- Size: 26.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# kvtool
CLI utility for Cloudflare Workers KV
## Installation
```
deno install --allow-net --allow-read --allow-write https://deno.land/x/kvtool@v0.4.0/kvtool.ts
```
## Setup
You need to set account_id and api_token in wrangler.toml:
```toml
account_id = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
api_token = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
```
## Usage
```
Usage: kvtool
Version: 0.4.0
Description:
CLI utility for Cloudflare Workers KV
Options:
-h, --help - Show this help.
-V, --version - Show the version number for this program.
-c, --config - Path to a configuration file (Default: "./wrangler.toml")
Commands:
list - List namespaces owned by your account
create - Create a namespace
rename - Rename a namespace
copy - Copy a namespace
clear - Delete all key-value pairs in a namespace
dump - Dump a namespace into files
pages - List variables binded to KV namespaces in a Pages project
```
## Acknowledgement
The development of **kvtool** is supported by [Active Connector Inc.](https://www.active-connector.com/)