Version v3.4 of the documentation is no longer actively maintained. The page that you are viewing is the last archived version. For the latest stable documentation, see v3.5.
Quickstart
Get etcd up and running in less than 5 minutes!
Follow these instructions to locally install, run, and test a single-member cluster of etcd:
-
Install etcd from pre-built binaries or from source. For details, see Install.
Important: Ensure that you perform the last step of the installation instructions to verify thatetcd
is in your path. -
Launch
etcd
:$ etcd --logger=zap {"level":"info","ts":"2021-09-20T08:19:31.340-0400","caller":"etcdmain/etcd.go:110","msg":... } ⋮
Note: The output produced byetcd
are logs — info-level logs can be ignored. -
From another terminal, use
etcdctl
to set a key:$ etcdctl put greeting "Hello, etcd" OK
-
From the same terminal, retrieve the key:
$ etcdctl get greeting greeting Hello, etcd
What’s next?
Learn about more ways to configure and use etcd from the following pages:
- Explore the gRPC API.
- Set up a multi-machine cluster.
- Learn how to configure etcd.
- Find language bindings and tools.
- Use TLS to secure an etcd cluster.
- Tune etcd.
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 20, 2021: Quickstart v3.4: backport of v3.5 changes (#488) (fe845c7)