daily pastebin goal
10%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Start the server in DEV mode
  2. vault server -dev
  3.  
  4. # Write key value pair
  5. vault write secret/<name of secret> <data kv pairs>
  6.  
  7. # Read secret
  8. vault read secret/<name of secret>
  9.  
  10. # Read secret as JSON
  11. vault read -format=json secret/<name of secret>
  12.  
  13. # Delete secret
  14. vault delete secret/<name of secret>
  15.  
  16. # Mount backend
  17. vault mount kv
  18.  
  19. # List mounts
  20. vault mounts
  21.  
  22. # Unmount
  23. vault unmount kv
  24.  
  25. # Mount aws back-end
  26. vault mount aws
  27.  
  28. # Create token
  29. vault token-create
  30.  
  31. # Revoke token
  32. vault token-revoke
  33.  
  34. # Authenticate
  35. vault auth <token>
RAW Paste Data
Top