An open API service indexing awesome lists of open source software.

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

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/)