From df94c80c42fb7bb9971dc9cca5a2e5b956ff1bed Mon Sep 17 00:00:00 2001 From: Jacob Bednarz Date: Thu, 17 Sep 2020 09:32:36 +1000 Subject: [PATCH] add new shell example to README --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index b82cdfe..bf9bc69 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,22 @@ $ env | grep -i cloudflare # => no results $ cf-vault exec work -- env | grep -i cloudflare +CLOUDFLARE_VAULT_SESSION=work CLOUDFLARE_EMAIL=jacob@example.com CLOUDFLARE_API_KEY=s3cr3t ``` + +If you don't provide a command, you will be dropped into a new shell with the +credentials populated. + +```shell +$ cf-vault exec work +$ env | grep -i cloudflare +CLOUDFLARE_VAULT_SESSION=work +CLOUDFLARE_EMAIL=jacob@example.com +CLOUDFLARE_API_KEY=s3cr3t + +$ exit +$ env | grep -i cloudflare +# => no results +```