arthurzenika / etcdsh

etcd command line tool with tab completion and history

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

etcdsh Build Status

etcdsh is a command line tool for etcd. etcdsh provides filesystem-like access to etcd structure. Although there is an official command line tool etcdctl, it is annoying you have to enter the same (often very long) keys again for every command. etcdsh tries to make it simpler and faster by providing history and tab completion.

Building

etcdsh is written using go language, it can be built using standard go build tool:

go get github.com/kamilhark/etcdsh

Downloads binaries

Examples

./etcdsh [--url http://localhost:4001] [--urls http://etcd1:4001,http://etcd2:4001]
connected to etcd
/> cd foo/bar
/foo/bar> set key value
/foo/bar> get key
value
/foo/bar> dump /
/foo/
/foo/bar/
/foo/bar/key#value
/foo/bar/dir1/
/foo/bar/dir2/
/foo/bar> rm key
/foo/bar> ls
dir1
dir2
/foo/bar> mkdir dir3
/foo/bar> ls
dir1
dir2
dir3
/foo/bar> rmdir dir3
/foo/bar> cd ..
/foo> ls
bar
/foo> cp bar xyz
/foo> ls
bar
xyz
/foo> mv xyz aaa
/foo> ls
bar
aaa
/foo/bar> exit

About

etcd command line tool with tab completion and history


Languages

Language:Go 100.0%