Skip to content

Commit

Permalink
Updated README
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Persson committed Sep 9, 2015
1 parent 64b9b6f commit 8543969
Showing 1 changed file with 17 additions and 28 deletions.
45 changes: 17 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
# Usage Etcd Export

```bash
Usage:
etcd-export [OPTIONS]

Application Options:
-v, --verbose Verbose
--version Version
-f, --format= Data serialization format YAML, TOML or JSON (JSON)
-o, --output= Output file (STDOUT)
-n, --etcd-node= Etcd Node
-p, --etcd-port= Etcd Port (2379)
-d, --etcd-dir= Etcd Dir (/)

Help Options:
-h, --help Show this help message
Usage of bin/etcd-export:
-dir="/": Etcd directory
-format="JSON": Data serialization format YAML, TOML or JSON
-node="": Etcd node
-output="": Output file
-port="2379": Etcd port
-version=false: Version
```

You can also set an env. variable for the Etcd node and port.
Expand All @@ -26,22 +19,17 @@ export ETCD_CONN="http://etcd1.example.com:2379"
# Usage Etcd Import

```bash
Usage:
etcd-import [OPTIONS]

Application Options:
-v, --verbose Verbose
--version Version
-f, --format= Data serialization format YAML, TOML or JSON (JSON)
-i, --input= Input file (STDOUT)
-n, --etcd-node= Etcd Node
-p, --etcd-port= Etcd Port (2379)
-d, --etcd-dir= Etcd Dir (/)

Help Options:
-h, --help Show this help message
Usage of bin/etcd-import:
-dir="/": Etcd directory
-format="JSON": Data serialization format YAML, TOML or JSON
-input="": Input file
-node="": Etcd node
-port="2379": Etcd port
-version=false: Version
```

You can also provide input by using STDIN.

# Build

```bash
Expand All @@ -60,6 +48,7 @@ First configure Docker on your Linux or Mac OS X host.
eval "$(./init-etcd.sh env)"
bin/etcd-import -i example.json
bin/etcd-export -f toml
bin/etcd-export | bin/etcd-import -dir /test
```

# Install using Homebrew
Expand Down

0 comments on commit 8543969

Please sign in to comment.