etcd-cli

command module
v0.0.0-...-c404908 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: MIT Imports: 9 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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/domgoer/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
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
tls

Jump to

Keyboard shortcuts

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