etcd-cli

command module
v0.0.0-...-2e8ce5b Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2019 License: MIT Imports: 9 Imported by: 0

README

ETCD-CLI

中文文档

After connecting to the etcd service using the etcd-cli, you can use the common Linux commands to manipulate the data in the etcd

etcd-cli -s 127.0.0.1 -p 2380
Supported commands
  • cd
  • ls
  • mkdir
  • touch
  • rm
  • mv
  • cp
  • pwd
  • cat

(additional parameters, such as -f, -r, -p, etc., are not supported)

you can even use vim to modify the etcd * * can be translated into text files

It is important to note rm, mv, cp these commands in operation is needed in the add "/", is used to distinguish the folder or file

# Delete the entire dir folder
rm dir/
# Delete the file
rm file

The same as cp,mv

option

Additional commands supported
  • upload [etcd-path] [local-path] Upload local files to the path specified by etc
  • download [etcd-path] [local-path] Download the file specified in the etcd to local

If you are using upload or download in the connection state, the local-path needs to write the absolute path

You can also use etcd-cli directly, where local-path can use a relative path

etcd-cli -s 127.0.0.1 -p 2380 download /etcd-path/testfile ./
How to install

First of all,install the go locale

go get github.com/hiruok/etcd-cli
cd $GOPATH/bin
./etcd-cli

Documentation

Overview

====================================================

# Copyright (C)2019 All rights reserved. # # Author : domchan # Email : 814172254@qq.com # File Name : main.go # Created : 2019-01-29 11:53:54 # Describe : # # ====================================================

Directories

Path Synopsis
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.
pkg
cmd
* @Author: domchan * @Date: 2018-12-28 15:30:41 * @Last Modified by: domchan * @Last Modified time: 2018-12-28 15:31:43
* @Author: domchan * @Date: 2018-12-28 15:30:41 * @Last Modified by: domchan * @Last Modified time: 2018-12-28 15:31:43
stack
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.
store
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.
store/etcd
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.
tls
utils
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.
version
==================================================== # Copyright (C)2019 All rights reserved.
==================================================== # Copyright (C)2019 All rights reserved.

Jump to

Keyboard shortcuts

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