dicedb-cli

command module
v1.0.8 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2025 License: BSD-3-Clause Imports: 1 Imported by: 0

README

DiceDB CLI

This is a command line interface for DiceDB.

Get Started

Using cURL

The best way to connect to DiceDB is using DiceDB CLI and you can install it by running the following command

$ sudo su
$ curl -sL https://raw.githubusercontent.com/dicedb/dicedb-cli/refs/heads/master/install.sh | sh

If you are working on unsupported OS (as per above script), you can always follow the installation instructions mentioned in the dicedb/cli repository.

Building from source
$ git clone https://github.com/dicedb/dicedb-cli
$ cd dicedb-cli
$ make build

The above command will create a binary dicedb-cli. Execute the binary will start the CLI and will try to connect to the DiceDB server.

Usage

Run the executable to start the interactive prompt (REPL)

$ dicedb-cli

You should see

localhost:7379>

To connect to some other host or port, you can pass the flags --host and --port with apt parameters. You can also get all available parameters by firing

$ dicedb-cli --help

Firing commands

You can execute any DiceDB command directly:

localhost:7379> SET k1 v1
OK OK
localhost:7379> GET k1
OK "v1"
localhost:7379> DEL k1
OK 1

You can find all available commands at dicedb.io/docs.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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