Store a key-value pair, reading the value from a file

etcdctl

  • CLI interface for interacting with etcd, a highly-available key-value pair store.
    More information: <https://etcd.io/docs/latest/dev-guide/interacting_v3/>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

etcdctl put {{my/file}} < {{path/to/file.txt}}

click the source code to copy install etcdctl on any operating system with command-not-found.com