help.go 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. package etcdmain
  2. var (
  3. usageline = `usage: etcd [flags]
  4. start an etcd server
  5. etcd --version
  6. show the version of etcd
  7. etcd -h | --help
  8. show the help information about etcd
  9. `
  10. flagsline = `
  11. member flags:
  12. --name 'default'
  13. human-readable name for this member.
  14. --data-dir '${name}.etcd'
  15. path to the data directory.
  16. --snapshot-count '10000'
  17. number of committed transactions to trigger a snapshot to disk.
  18. --listen-peer-urls 'http://localhost:2380,http://localhost:7001'
  19. list of URLs to listen on for peer traffic.
  20. --listen-client-urls 'http://localhost:2379,http://localhost:4001'
  21. list of URLs to listen on for client traffic.
  22. -cors ''
  23. comma-separated whitelist of origins for CORS (cross-origin resource sharing).
  24. clustering flags:
  25. --initial-advertise-peer-urls 'http://localhost:2380,http://localhost:7001'
  26. list of this member's peer URLs to advertise to the rest of the cluster.
  27. --initial-cluster 'default=http://localhost:2380,default=http://localhost:7001'
  28. initial cluster configuration for bootstrapping.
  29. --initial-cluster-state 'new'
  30. initial cluster state ('new' or 'existing').
  31. --initial-cluster-token 'etcd-cluster'
  32. initial cluster token for the etcd cluster during bootstrap.
  33. --advertise-client-urls 'http://localhost:2379,http://localhost:4001'
  34. list of this member's client URLs to advertise to the rest of the cluster.
  35. --discovery ''
  36. discovery URL used to bootstrap the cluster.
  37. --discovery-fallback 'proxy'
  38. expected behavior ('exit' or 'proxy') when discovery services fails.
  39. --discovery-proxy ''
  40. HTTP proxy to use for traffic to discovery service.
  41. proxy flags:
  42. --proxy 'off'
  43. proxy mode setting ('off', 'readonly' or 'on').
  44. security flags:
  45. --ca-file ''
  46. path to the client server TLS CA file.
  47. --cert-file ''
  48. path to the client server TLS cert file.
  49. --key-file ''
  50. path to the client server TLS key file.
  51. --peer-ca-file ''
  52. path to the peer server TLS CA file.
  53. --peer-cert-file ''
  54. path to the peer server TLS cert file.
  55. --peer-key-file ''
  56. path to the peer server TLS key file.
  57. unsafe flags:
  58. Please be CAUTIOUS to use unsafe flags because it will break the guarantee given
  59. by consensus protocol.
  60. --force-new-cluster 'false'
  61. force to create a new one-member cluster.
  62. `
  63. )