commands_output.golden 43 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362
  1. $ version
  2. e2e-test
  3. $ version -json
  4. {"version":"e2e-test"}
  5. $ version -pretty
  6. {
  7. "version": "e2e-test"
  8. }
  9. $ device-info
  10. name= cidr=[10.222.0.1/24]
  11. $ device-info -json
  12. {"name":"","cidr":["10.222.0.1/24"]}
  13. $ device-info -pretty
  14. {
  15. "name": "",
  16. "cidr": [
  17. "10.222.0.1/24"
  18. ]
  19. }
  20. $ list-hostmap
  21. $ list-hostmap -json
  22. []
  23. $ list-hostmap -pretty
  24. []
  25. $ list-hostmap -by-index
  26. $ list-hostmap -json -by-index
  27. []
  28. $ list-hostmap -pretty -by-index
  29. []
  30. $ list-pending-hostmap
  31. [10.222.0.9]: []
  32. $ list-pending-hostmap -json
  33. [{"vpnAddrs":["10.222.0.9"],"localIndex":<n>,"remoteIndex":<n>,"remoteAddrs":[],"cert":null,"messageCounter":<n>,"currentRemote":"","currentRelaysToMe":[],"currentRelaysThroughMe":[]}]
  34. $ list-pending-hostmap -pretty
  35. [
  36. {
  37. "vpnAddrs": [
  38. "10.222.0.9"
  39. ],
  40. "localIndex": <n>,
  41. "remoteIndex": <n>,
  42. "remoteAddrs": [],
  43. "cert": null,
  44. "messageCounter": <n>,
  45. "currentRemote": "",
  46. "currentRelaysToMe": [],
  47. "currentRelaysThroughMe": []
  48. }
  49. ]
  50. $ list-pending-hostmap -by-index
  51. $ list-pending-hostmap -json -by-index
  52. []
  53. $ list-pending-hostmap -pretty -by-index
  54. []
  55. $ list-lighthouse-addrmap
  56. 10.222.0.9: {}
  57. $ list-lighthouse-addrmap -json
  58. [{"vpnAddr":"10.222.0.9","addrs":{}}]
  59. $ list-lighthouse-addrmap -pretty
  60. [
  61. {
  62. "vpnAddr": "10.222.0.9",
  63. "addrs": {}
  64. }
  65. ]
  66. $ print-cert
  67. {
  68. "details": {
  69. "curve": "CURVE25519",
  70. "groups": [],
  71. "isCa": false,
  72. "issuer": "<hex>",
  73. "name": "output-golden",
  74. "networks": [
  75. "10.222.0.1/24"
  76. ],
  77. "notAfter": "<time>",
  78. "notBefore": "<time>",
  79. "publicKey": "<hex>",
  80. "unsafeNetworks": []
  81. },
  82. "fingerprint": "<hex>",
  83. "signature": "<hex>",
  84. "version": 1
  85. }
  86. $ print-cert -json
  87. {"details":{"curve":"CURVE25519","groups":[],"isCa":false,"issuer":"<hex>","name":"output-golden","networks":["10.222.0.1/24"],"notAfter":"<time>","notBefore":"<time>","publicKey":"<hex>","unsafeNetworks":[]},"fingerprint":"<hex>","signature":"<hex>","version":1}
  88. $ print-cert -pretty
  89. {
  90. "details": {
  91. "curve": "CURVE25519",
  92. "groups": [],
  93. "isCa": false,
  94. "issuer": "<hex>",
  95. "name": "output-golden",
  96. "networks": [
  97. "10.222.0.1/24"
  98. ],
  99. "notAfter": "<time>",
  100. "notBefore": "<time>",
  101. "publicKey": "<hex>",
  102. "unsafeNetworks": []
  103. },
  104. "fingerprint": "<hex>",
  105. "signature": "<hex>",
  106. "version": 1
  107. }
  108. $ print-cert -raw
  109. -----BEGIN NEBULA CERTIFICATE-----
  110. <pem>
  111. -----END NEBULA CERTIFICATE-----
  112. $ print-cert -json -raw
  113. {"pem":"-----BEGIN NEBULA CERTIFICATE-----\n<pem>\n-----END NEBULA CERTIFICATE-----\n"}
  114. $ print-cert -pretty -raw
  115. {
  116. "pem": "-----BEGIN NEBULA CERTIFICATE-----\n<pem>\n-----END NEBULA CERTIFICATE-----\n"
  117. }
  118. $ print-cert 10.222.0.9
  119. Could not find tunnel for vpn addr: 10.222.0.9
  120. exit status 1
  121. $ print-cert -json 10.222.0.9
  122. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.9"}
  123. exit status 1
  124. $ print-cert -pretty 10.222.0.9
  125. {
  126. "ok": false,
  127. "reason": "Could not find tunnel for vpn addr: 10.222.0.9"
  128. }
  129. exit status 1
  130. $ print-cert 10.222.0.9 -json
  131. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.9"}
  132. exit status 1
  133. $ print-cert -json 10.222.0.9 -json
  134. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.9"}
  135. exit status 1
  136. $ print-cert -pretty 10.222.0.9 -json
  137. {
  138. "ok": false,
  139. "reason": "Could not find tunnel for vpn addr: 10.222.0.9"
  140. }
  141. exit status 1
  142. $ print-cert 10.222.0.250
  143. Could not find tunnel for vpn addr: 10.222.0.250
  144. exit status 1
  145. $ print-cert -json 10.222.0.250
  146. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.250"}
  147. exit status 1
  148. $ print-cert -pretty 10.222.0.250
  149. {
  150. "ok": false,
  151. "reason": "Could not find tunnel for vpn addr: 10.222.0.250"
  152. }
  153. exit status 1
  154. $ print-cert not-an-address
  155. The provided vpn addr could not be parsed: not-an-address
  156. exit status 1
  157. $ print-cert -json not-an-address
  158. {"ok":false,"reason":"The provided vpn addr could not be parsed: not-an-address"}
  159. exit status 1
  160. $ print-cert -pretty not-an-address
  161. {
  162. "ok": false,
  163. "reason": "The provided vpn addr could not be parsed: not-an-address"
  164. }
  165. exit status 1
  166. $ whoami
  167. name: output-golden
  168. vpn addrs: 10.222.0.1
  169. networks: 10.222.0.1/24
  170. unsafe networks:
  171. groups:
  172. fingerprint: <hex>
  173. issuer: <hex>
  174. not before: <time>
  175. not after: <time>
  176. cert version: 1
  177. $ whoami -json
  178. {"name":"output-golden","vpnAddrs":["10.222.0.1"],"networks":["10.222.0.1/24"],"unsafeNetworks":[],"groups":[],"fingerprint":"<hex>","issuer":"<hex>","notBefore":"<time>","notAfter":"<time>","certVersion":1}
  179. $ whoami -pretty
  180. {
  181. "name": "output-golden",
  182. "vpnAddrs": [
  183. "10.222.0.1"
  184. ],
  185. "networks": [
  186. "10.222.0.1/24"
  187. ],
  188. "unsafeNetworks": [],
  189. "groups": [],
  190. "fingerprint": "<hex>",
  191. "issuer": "<hex>",
  192. "notBefore": "<time>",
  193. "notAfter": "<time>",
  194. "certVersion": 1
  195. }
  196. $ whoami x
  197. whoami takes no arguments
  198. exit status 1
  199. $ whoami -json x
  200. {"ok":false,"reason":"whoami takes no arguments"}
  201. exit status 1
  202. $ whoami -pretty x
  203. {
  204. "ok": false,
  205. "reason": "whoami takes no arguments"
  206. }
  207. exit status 1
  208. $ identity
  209. No vpn addr was provided, use -address <vpn addr>[:port]; whoami prints this node's own identity
  210. exit status 1
  211. $ identity -json
  212. {"ok":false,"reason":"No vpn addr was provided, use -address \u003cvpn addr\u003e[:port]; whoami prints this node's own identity"}
  213. exit status 1
  214. $ identity -pretty
  215. {
  216. "ok": false,
  217. "reason": "No vpn addr was provided, use -address \u003cvpn addr\u003e[:port]; whoami prints this node's own identity"
  218. }
  219. exit status 1
  220. $ identity -address 10.222.0.1
  221. name: output-golden
  222. vpn addrs: 10.222.0.1
  223. networks: 10.222.0.1/24
  224. unsafe networks:
  225. groups:
  226. fingerprint: <hex>
  227. issuer: <hex>
  228. not before: <time>
  229. not after: <time>
  230. cert version: 1
  231. $ identity -json -address 10.222.0.1
  232. {"name":"output-golden","vpnAddrs":["10.222.0.1"],"networks":["10.222.0.1/24"],"unsafeNetworks":[],"groups":[],"fingerprint":"<hex>","issuer":"<hex>","notBefore":"<time>","notAfter":"<time>","certVersion":1}
  233. $ identity -pretty -address 10.222.0.1
  234. {
  235. "name": "output-golden",
  236. "vpnAddrs": [
  237. "10.222.0.1"
  238. ],
  239. "networks": [
  240. "10.222.0.1/24"
  241. ],
  242. "unsafeNetworks": [],
  243. "groups": [],
  244. "fingerprint": "<hex>",
  245. "issuer": "<hex>",
  246. "notBefore": "<time>",
  247. "notAfter": "<time>",
  248. "certVersion": 1
  249. }
  250. $ identity -address 10.222.0.1:4242
  251. name: output-golden
  252. vpn addrs: 10.222.0.1
  253. networks: 10.222.0.1/24
  254. unsafe networks:
  255. groups:
  256. fingerprint: <hex>
  257. issuer: <hex>
  258. not before: <time>
  259. not after: <time>
  260. cert version: 1
  261. $ identity -json -address 10.222.0.1:4242
  262. {"name":"output-golden","vpnAddrs":["10.222.0.1"],"networks":["10.222.0.1/24"],"unsafeNetworks":[],"groups":[],"fingerprint":"<hex>","issuer":"<hex>","notBefore":"<time>","notAfter":"<time>","certVersion":1}
  263. $ identity -pretty -address 10.222.0.1:4242
  264. {
  265. "name": "output-golden",
  266. "vpnAddrs": [
  267. "10.222.0.1"
  268. ],
  269. "networks": [
  270. "10.222.0.1/24"
  271. ],
  272. "unsafeNetworks": [],
  273. "groups": [],
  274. "fingerprint": "<hex>",
  275. "issuer": "<hex>",
  276. "notBefore": "<time>",
  277. "notAfter": "<time>",
  278. "certVersion": 1
  279. }
  280. $ identity -address 10.222.0.9
  281. No active tunnel for vpn addr: 10.222.0.9
  282. exit status 1
  283. $ identity -json -address 10.222.0.9
  284. {"ok":false,"reason":"No active tunnel for vpn addr: 10.222.0.9"}
  285. exit status 1
  286. $ identity -pretty -address 10.222.0.9
  287. {
  288. "ok": false,
  289. "reason": "No active tunnel for vpn addr: 10.222.0.9"
  290. }
  291. exit status 1
  292. $ identity -address not-an-address
  293. The provided vpn addr could not be parsed: not-an-address
  294. exit status 1
  295. $ identity -json -address not-an-address
  296. {"ok":false,"reason":"The provided vpn addr could not be parsed: not-an-address"}
  297. exit status 1
  298. $ identity -pretty -address not-an-address
  299. {
  300. "ok": false,
  301. "reason": "The provided vpn addr could not be parsed: not-an-address"
  302. }
  303. exit status 1
  304. $ identity -address
  305. The provided vpn addr could not be parsed:
  306. exit status 1
  307. $ identity -json -address
  308. {"ok":false,"reason":"The provided vpn addr could not be parsed: "}
  309. exit status 1
  310. $ identity -pretty -address
  311. {
  312. "ok": false,
  313. "reason": "The provided vpn addr could not be parsed: "
  314. }
  315. exit status 1
  316. $ identity 10.222.0.9
  317. identity takes the vpn addr as -address, not as an operand: identity -address 10.222.0.9
  318. exit status 1
  319. $ identity -json 10.222.0.9
  320. {"ok":false,"reason":"identity takes the vpn addr as -address, not as an operand: identity -address 10.222.0.9"}
  321. exit status 1
  322. $ identity -pretty 10.222.0.9
  323. {
  324. "ok": false,
  325. "reason": "identity takes the vpn addr as -address, not as an operand: identity -address 10.222.0.9"
  326. }
  327. exit status 1
  328. $ print-tunnel
  329. No vpn address was provided
  330. exit status 1
  331. $ print-tunnel -json
  332. {"ok":false,"reason":"No vpn address was provided"}
  333. exit status 1
  334. $ print-tunnel -pretty
  335. {
  336. "ok": false,
  337. "reason": "No vpn address was provided"
  338. }
  339. exit status 1
  340. $ print-tunnel 10.222.0.9
  341. Could not find tunnel for vpn addr: 10.222.0.9
  342. exit status 1
  343. $ print-tunnel -json 10.222.0.9
  344. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.9"}
  345. exit status 1
  346. $ print-tunnel -pretty 10.222.0.9
  347. {
  348. "ok": false,
  349. "reason": "Could not find tunnel for vpn addr: 10.222.0.9"
  350. }
  351. exit status 1
  352. $ print-tunnel 10.222.0.250
  353. Could not find tunnel for vpn addr: 10.222.0.250
  354. exit status 1
  355. $ print-tunnel -json 10.222.0.250
  356. {"ok":false,"reason":"Could not find tunnel for vpn addr: 10.222.0.250"}
  357. exit status 1
  358. $ print-tunnel -pretty 10.222.0.250
  359. {
  360. "ok": false,
  361. "reason": "Could not find tunnel for vpn addr: 10.222.0.250"
  362. }
  363. exit status 1
  364. $ print-relays
  365. {"Relays":null}
  366. $ print-relays -json
  367. {"Relays":null}
  368. $ print-relays -pretty
  369. {
  370. "Relays": null
  371. }
  372. $ query-lighthouse
  373. No vpn address was provided
  374. exit status 1
  375. $ query-lighthouse -json
  376. {"ok":false,"reason":"No vpn address was provided"}
  377. exit status 1
  378. $ query-lighthouse -pretty
  379. {
  380. "ok": false,
  381. "reason": "No vpn address was provided"
  382. }
  383. exit status 1
  384. $ query-lighthouse 10.222.0.9
  385. {}
  386. $ query-lighthouse -json 10.222.0.9
  387. {}
  388. $ query-lighthouse -pretty 10.222.0.9
  389. {}
  390. $ query-lighthouse not-an-address
  391. The provided vpn address could not be parsed: not-an-address
  392. exit status 1
  393. $ query-lighthouse -json not-an-address
  394. {"ok":false,"reason":"The provided vpn address could not be parsed: not-an-address"}
  395. exit status 1
  396. $ query-lighthouse -pretty not-an-address
  397. {
  398. "ok": false,
  399. "reason": "The provided vpn address could not be parsed: not-an-address"
  400. }
  401. exit status 1
  402. $ log-level
  403. Log level is not reconfigurable on this logger
  404. exit status 1
  405. $ log-level -json
  406. {"ok":false,"reason":"Log level is not reconfigurable on this logger"}
  407. exit status 1
  408. $ log-level -pretty
  409. {
  410. "ok": false,
  411. "reason": "Log level is not reconfigurable on this logger"
  412. }
  413. exit status 1
  414. $ log-level debug
  415. Log level is not reconfigurable on this logger
  416. exit status 1
  417. $ log-level -json debug
  418. {"ok":false,"reason":"Log level is not reconfigurable on this logger"}
  419. exit status 1
  420. $ log-level -pretty debug
  421. {
  422. "ok": false,
  423. "reason": "Log level is not reconfigurable on this logger"
  424. }
  425. exit status 1
  426. $ log-level bogus
  427. Log level is not reconfigurable on this logger
  428. exit status 1
  429. $ log-level -json bogus
  430. {"ok":false,"reason":"Log level is not reconfigurable on this logger"}
  431. exit status 1
  432. $ log-level -pretty bogus
  433. {
  434. "ok": false,
  435. "reason": "Log level is not reconfigurable on this logger"
  436. }
  437. exit status 1
  438. $ log-level info
  439. Log level is not reconfigurable on this logger
  440. exit status 1
  441. $ log-level -json info
  442. {"ok":false,"reason":"Log level is not reconfigurable on this logger"}
  443. exit status 1
  444. $ log-level -pretty info
  445. {
  446. "ok": false,
  447. "reason": "Log level is not reconfigurable on this logger"
  448. }
  449. exit status 1
  450. $ log-format
  451. Log format is not reconfigurable on this logger
  452. exit status 1
  453. $ log-format -json
  454. {"ok":false,"reason":"Log format is not reconfigurable on this logger"}
  455. exit status 1
  456. $ log-format -pretty
  457. {
  458. "ok": false,
  459. "reason": "Log format is not reconfigurable on this logger"
  460. }
  461. exit status 1
  462. $ log-format json
  463. Log format is not reconfigurable on this logger
  464. exit status 1
  465. $ log-format -json json
  466. {"ok":false,"reason":"Log format is not reconfigurable on this logger"}
  467. exit status 1
  468. $ log-format -pretty json
  469. {
  470. "ok": false,
  471. "reason": "Log format is not reconfigurable on this logger"
  472. }
  473. exit status 1
  474. $ log-format text
  475. Log format is not reconfigurable on this logger
  476. exit status 1
  477. $ log-format -json text
  478. {"ok":false,"reason":"Log format is not reconfigurable on this logger"}
  479. exit status 1
  480. $ log-format -pretty text
  481. {
  482. "ok": false,
  483. "reason": "Log format is not reconfigurable on this logger"
  484. }
  485. exit status 1
  486. $ change-remote
  487. No vpn address was provided
  488. exit status 1
  489. $ change-remote -json
  490. {"ok":false,"reason":"No vpn address was provided"}
  491. exit status 1
  492. $ change-remote -pretty
  493. {
  494. "ok": false,
  495. "reason": "No vpn address was provided"
  496. }
  497. exit status 1
  498. $ change-remote 10.222.0.9
  499. No address was provided
  500. exit status 1
  501. $ change-remote -json 10.222.0.9
  502. {"ok":false,"reason":"No address was provided"}
  503. exit status 1
  504. $ change-remote -pretty 10.222.0.9
  505. {
  506. "ok": false,
  507. "reason": "No address was provided"
  508. }
  509. exit status 1
  510. $ change-remote -address 10.94.0.10:4242 10.222.0.9
  511. Could not find tunnel for vpn address: 10.222.0.9
  512. exit status 1
  513. $ change-remote -json -address 10.94.0.10:4242 10.222.0.9
  514. {"ok":false,"reason":"Could not find tunnel for vpn address: 10.222.0.9"}
  515. exit status 1
  516. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.9
  517. {
  518. "ok": false,
  519. "reason": "Could not find tunnel for vpn address: 10.222.0.9"
  520. }
  521. exit status 1
  522. $ change-remote -address 10.94.0.10:4242 10.222.0.250
  523. Could not find tunnel for vpn address: 10.222.0.250
  524. exit status 1
  525. $ change-remote -json -address 10.94.0.10:4242 10.222.0.250
  526. {"ok":false,"reason":"Could not find tunnel for vpn address: 10.222.0.250"}
  527. exit status 1
  528. $ change-remote -pretty -address 10.94.0.10:4242 10.222.0.250
  529. {
  530. "ok": false,
  531. "reason": "Could not find tunnel for vpn address: 10.222.0.250"
  532. }
  533. exit status 1
  534. $ create-tunnel
  535. No vpn address was provided
  536. exit status 1
  537. $ create-tunnel -json
  538. {"ok":false,"reason":"No vpn address was provided"}
  539. exit status 1
  540. $ create-tunnel -pretty
  541. {
  542. "ok": false,
  543. "reason": "No vpn address was provided"
  544. }
  545. exit status 1
  546. $ create-tunnel 10.222.0.9
  547. Tunnel already handshaking
  548. exit status 1
  549. $ create-tunnel -json 10.222.0.9
  550. {"ok":false,"reason":"Tunnel already handshaking"}
  551. exit status 1
  552. $ create-tunnel -pretty 10.222.0.9
  553. {
  554. "ok": false,
  555. "reason": "Tunnel already handshaking"
  556. }
  557. exit status 1
  558. $ create-tunnel -address 10.94.0.10:4242 10.222.0.10
  559. Created
  560. $ create-tunnel -json -address 10.94.0.10:4242 10.222.0.10
  561. {"ok":false,"reason":"Tunnel already handshaking"}
  562. exit status 1
  563. $ create-tunnel -pretty -address 10.94.0.10:4242 10.222.0.10
  564. {
  565. "ok": false,
  566. "reason": "Tunnel already handshaking"
  567. }
  568. exit status 1
  569. $ create-tunnel not-an-address
  570. The provided vpn address could not be parsed: not-an-address
  571. exit status 1
  572. $ create-tunnel -json not-an-address
  573. {"ok":false,"reason":"The provided vpn address could not be parsed: not-an-address"}
  574. exit status 1
  575. $ create-tunnel -pretty not-an-address
  576. {
  577. "ok": false,
  578. "reason": "The provided vpn address could not be parsed: not-an-address"
  579. }
  580. exit status 1
  581. $ close-tunnel
  582. No vpn address was provided
  583. exit status 1
  584. $ close-tunnel -json
  585. {"ok":false,"reason":"No vpn address was provided"}
  586. exit status 1
  587. $ close-tunnel -pretty
  588. {
  589. "ok": false,
  590. "reason": "No vpn address was provided"
  591. }
  592. exit status 1
  593. $ close-tunnel 10.222.0.250
  594. Could not find tunnel for vpn address: 10.222.0.250
  595. exit status 1
  596. $ close-tunnel -json 10.222.0.250
  597. {"ok":false,"reason":"Could not find tunnel for vpn address: 10.222.0.250"}
  598. exit status 1
  599. $ close-tunnel -pretty 10.222.0.250
  600. {
  601. "ok": false,
  602. "reason": "Could not find tunnel for vpn address: 10.222.0.250"
  603. }
  604. exit status 1
  605. $ close-tunnel not-an-address
  606. The provided vpn address could not be parsed: not-an-address
  607. exit status 1
  608. $ close-tunnel -json not-an-address
  609. {"ok":false,"reason":"The provided vpn address could not be parsed: not-an-address"}
  610. exit status 1
  611. $ close-tunnel -pretty not-an-address
  612. {
  613. "ok": false,
  614. "reason": "The provided vpn address could not be parsed: not-an-address"
  615. }
  616. exit status 1
  617. $ help
  618. Available commands:
  619. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  620. close-tunnel - Closes a tunnel for the provided vpn addr
  621. create-tunnel - Creates a tunnel for the provided vpn address
  622. device-info - Prints information about the network device.
  623. help - prints available commands or help <command> for specific usage info
  624. identity - Prints the certificate identity of the host owning the provided vpn addr
  625. list-hostmap - List all known previously connected hosts
  626. list-lighthouse-addrmap - List all lighthouse map entries
  627. list-pending-hostmap - List all handshaking hosts
  628. log-format - Gets or sets the current log format
  629. log-level - Gets or sets the current log level
  630. logout - Ends the current session
  631. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  632. print-relays - Prints json details about all relay info
  633. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  634. query-lighthouse - Query the lighthouses for the provided vpn address
  635. reload - Reloads configuration from disk, same as sending HUP to the process
  636. version - Prints the currently running version of nebula
  637. whoami - Prints the certificate identity of this node
  638. $ help -json
  639. [{"name":"change-remote","short":"Changes the remote address used in the tunnel for the provided vpn addr","flags":[{"name":"address","usage":"The new remote address, ip:port"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"close-tunnel","short":"Closes a tunnel for the provided vpn addr","flags":[{"name":"local-only","bool":true,"default":"false","usage":"Disables notifying the remote that the tunnel is shutting down"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"create-tunnel","short":"Creates a tunnel for the provided vpn address","help":"The lighthouses will be queried for real addresses but you can provide one as well.","flags":[{"name":"address","usage":"Optionally provide a real remote address, ip:port "},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"device-info","short":"Prints information about the network device.","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"help","short":"prints available commands or help \u003ccommand\u003e for specific usage info","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"identity","short":"Prints the certificate identity of the host owning the provided vpn addr","help":"Identity is what the certificate says: name, vpn addrs, networks, groups, fingerprint, issuer and validity. The address may carry a port, so a connection's remote address can be passed through as is. For this node's own identity use whoami.","flags":[{"name":"address","usage":"The vpn addr to look up, optionally with a port"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"list-hostmap","short":"List all known previously connected hosts","flags":[{"name":"by-index","bool":true,"default":"false","usage":"gets all hosts in the hostmap from the index table"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"list-lighthouse-addrmap","short":"List all lighthouse map entries","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"list-pending-hostmap","short":"List all handshaking hosts","flags":[{"name":"by-index","bool":true,"default":"false","usage":"gets all hosts in the hostmap from the index table"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"log-format","short":"Gets or sets the current log format","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"log-level","short":"Gets or sets the current log level","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"logout","short":"Ends the current session","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"print-cert","short":"Prints the current certificate being used or the certificate for the provided vpn addr","help":"The vpn addr is an operand or -address, which may carry a port so a connection's remote address can be passed through as is. For a peer it is the certificate nebula verified when the tunnel came up; with no address it is this node's own, the v2 certificate when both versions are loaded. -raw prints the PEM.","flags":[{"name":"address","usage":"The vpn addr to look up, optionally with a port"},{"name":"raw","bool":true,"default":"false","usage":"prints the PEM encoded certificate; with -json, an object holding it"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"print-relays","short":"Prints json details about all relay info","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"print-tunnel","short":"Prints json details about a tunnel for the provided vpn addr","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"query-lighthouse","short":"Query the lighthouses for the provided vpn address","help":"This command is asynchronous. Only currently known udp addresses will be printed.","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"reload","short":"Reloads configuration from disk, same as sending HUP to the process","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"version","short":"Prints the currently running version of nebula","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]},{"name":"whoami","short":"Prints the certificate identity of this node","help":"The fields identity prints, read from this node's own certificate.","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]}]
  640. $ help -pretty
  641. [
  642. {
  643. "name": "change-remote",
  644. "short": "Changes the remote address used in the tunnel for the provided vpn addr",
  645. "flags": [
  646. {
  647. "name": "address",
  648. "usage": "The new remote address, ip:port"
  649. },
  650. {
  651. "name": "json",
  652. "bool": true,
  653. "default": "false",
  654. "usage": "outputs as json"
  655. },
  656. {
  657. "name": "pretty",
  658. "bool": true,
  659. "default": "false",
  660. "usage": "pretty prints json, assumes -json"
  661. }
  662. ]
  663. },
  664. {
  665. "name": "close-tunnel",
  666. "short": "Closes a tunnel for the provided vpn addr",
  667. "flags": [
  668. {
  669. "name": "local-only",
  670. "bool": true,
  671. "default": "false",
  672. "usage": "Disables notifying the remote that the tunnel is shutting down"
  673. },
  674. {
  675. "name": "json",
  676. "bool": true,
  677. "default": "false",
  678. "usage": "outputs as json"
  679. },
  680. {
  681. "name": "pretty",
  682. "bool": true,
  683. "default": "false",
  684. "usage": "pretty prints json, assumes -json"
  685. }
  686. ]
  687. },
  688. {
  689. "name": "create-tunnel",
  690. "short": "Creates a tunnel for the provided vpn address",
  691. "help": "The lighthouses will be queried for real addresses but you can provide one as well.",
  692. "flags": [
  693. {
  694. "name": "address",
  695. "usage": "Optionally provide a real remote address, ip:port "
  696. },
  697. {
  698. "name": "json",
  699. "bool": true,
  700. "default": "false",
  701. "usage": "outputs as json"
  702. },
  703. {
  704. "name": "pretty",
  705. "bool": true,
  706. "default": "false",
  707. "usage": "pretty prints json, assumes -json"
  708. }
  709. ]
  710. },
  711. {
  712. "name": "device-info",
  713. "short": "Prints information about the network device.",
  714. "flags": [
  715. {
  716. "name": "json",
  717. "bool": true,
  718. "default": "false",
  719. "usage": "outputs as json"
  720. },
  721. {
  722. "name": "pretty",
  723. "bool": true,
  724. "default": "false",
  725. "usage": "pretty prints json, assumes -json"
  726. }
  727. ]
  728. },
  729. {
  730. "name": "help",
  731. "short": "prints available commands or help \u003ccommand\u003e for specific usage info",
  732. "flags": [
  733. {
  734. "name": "json",
  735. "bool": true,
  736. "default": "false",
  737. "usage": "outputs as json"
  738. },
  739. {
  740. "name": "pretty",
  741. "bool": true,
  742. "default": "false",
  743. "usage": "pretty prints json, assumes -json"
  744. }
  745. ]
  746. },
  747. {
  748. "name": "identity",
  749. "short": "Prints the certificate identity of the host owning the provided vpn addr",
  750. "help": "Identity is what the certificate says: name, vpn addrs, networks, groups, fingerprint, issuer and validity. The address may carry a port, so a connection's remote address can be passed through as is. For this node's own identity use whoami.",
  751. "flags": [
  752. {
  753. "name": "address",
  754. "usage": "The vpn addr to look up, optionally with a port"
  755. },
  756. {
  757. "name": "json",
  758. "bool": true,
  759. "default": "false",
  760. "usage": "outputs as json"
  761. },
  762. {
  763. "name": "pretty",
  764. "bool": true,
  765. "default": "false",
  766. "usage": "pretty prints json, assumes -json"
  767. }
  768. ]
  769. },
  770. {
  771. "name": "list-hostmap",
  772. "short": "List all known previously connected hosts",
  773. "flags": [
  774. {
  775. "name": "by-index",
  776. "bool": true,
  777. "default": "false",
  778. "usage": "gets all hosts in the hostmap from the index table"
  779. },
  780. {
  781. "name": "json",
  782. "bool": true,
  783. "default": "false",
  784. "usage": "outputs as json"
  785. },
  786. {
  787. "name": "pretty",
  788. "bool": true,
  789. "default": "false",
  790. "usage": "pretty prints json, assumes -json"
  791. }
  792. ]
  793. },
  794. {
  795. "name": "list-lighthouse-addrmap",
  796. "short": "List all lighthouse map entries",
  797. "flags": [
  798. {
  799. "name": "json",
  800. "bool": true,
  801. "default": "false",
  802. "usage": "outputs as json"
  803. },
  804. {
  805. "name": "pretty",
  806. "bool": true,
  807. "default": "false",
  808. "usage": "pretty prints json, assumes -json"
  809. }
  810. ]
  811. },
  812. {
  813. "name": "list-pending-hostmap",
  814. "short": "List all handshaking hosts",
  815. "flags": [
  816. {
  817. "name": "by-index",
  818. "bool": true,
  819. "default": "false",
  820. "usage": "gets all hosts in the hostmap from the index table"
  821. },
  822. {
  823. "name": "json",
  824. "bool": true,
  825. "default": "false",
  826. "usage": "outputs as json"
  827. },
  828. {
  829. "name": "pretty",
  830. "bool": true,
  831. "default": "false",
  832. "usage": "pretty prints json, assumes -json"
  833. }
  834. ]
  835. },
  836. {
  837. "name": "log-format",
  838. "short": "Gets or sets the current log format",
  839. "flags": [
  840. {
  841. "name": "json",
  842. "bool": true,
  843. "default": "false",
  844. "usage": "outputs as json"
  845. },
  846. {
  847. "name": "pretty",
  848. "bool": true,
  849. "default": "false",
  850. "usage": "pretty prints json, assumes -json"
  851. }
  852. ]
  853. },
  854. {
  855. "name": "log-level",
  856. "short": "Gets or sets the current log level",
  857. "flags": [
  858. {
  859. "name": "json",
  860. "bool": true,
  861. "default": "false",
  862. "usage": "outputs as json"
  863. },
  864. {
  865. "name": "pretty",
  866. "bool": true,
  867. "default": "false",
  868. "usage": "pretty prints json, assumes -json"
  869. }
  870. ]
  871. },
  872. {
  873. "name": "logout",
  874. "short": "Ends the current session",
  875. "flags": [
  876. {
  877. "name": "json",
  878. "bool": true,
  879. "default": "false",
  880. "usage": "outputs as json"
  881. },
  882. {
  883. "name": "pretty",
  884. "bool": true,
  885. "default": "false",
  886. "usage": "pretty prints json, assumes -json"
  887. }
  888. ]
  889. },
  890. {
  891. "name": "print-cert",
  892. "short": "Prints the current certificate being used or the certificate for the provided vpn addr",
  893. "help": "The vpn addr is an operand or -address, which may carry a port so a connection's remote address can be passed through as is. For a peer it is the certificate nebula verified when the tunnel came up; with no address it is this node's own, the v2 certificate when both versions are loaded. -raw prints the PEM.",
  894. "flags": [
  895. {
  896. "name": "address",
  897. "usage": "The vpn addr to look up, optionally with a port"
  898. },
  899. {
  900. "name": "raw",
  901. "bool": true,
  902. "default": "false",
  903. "usage": "prints the PEM encoded certificate; with -json, an object holding it"
  904. },
  905. {
  906. "name": "json",
  907. "bool": true,
  908. "default": "false",
  909. "usage": "outputs as json"
  910. },
  911. {
  912. "name": "pretty",
  913. "bool": true,
  914. "default": "false",
  915. "usage": "pretty prints json, assumes -json"
  916. }
  917. ]
  918. },
  919. {
  920. "name": "print-relays",
  921. "short": "Prints json details about all relay info",
  922. "flags": [
  923. {
  924. "name": "json",
  925. "bool": true,
  926. "default": "false",
  927. "usage": "outputs as json"
  928. },
  929. {
  930. "name": "pretty",
  931. "bool": true,
  932. "default": "false",
  933. "usage": "pretty prints json, assumes -json"
  934. }
  935. ]
  936. },
  937. {
  938. "name": "print-tunnel",
  939. "short": "Prints json details about a tunnel for the provided vpn addr",
  940. "flags": [
  941. {
  942. "name": "json",
  943. "bool": true,
  944. "default": "false",
  945. "usage": "outputs as json"
  946. },
  947. {
  948. "name": "pretty",
  949. "bool": true,
  950. "default": "false",
  951. "usage": "pretty prints json, assumes -json"
  952. }
  953. ]
  954. },
  955. {
  956. "name": "query-lighthouse",
  957. "short": "Query the lighthouses for the provided vpn address",
  958. "help": "This command is asynchronous. Only currently known udp addresses will be printed.",
  959. "flags": [
  960. {
  961. "name": "json",
  962. "bool": true,
  963. "default": "false",
  964. "usage": "outputs as json"
  965. },
  966. {
  967. "name": "pretty",
  968. "bool": true,
  969. "default": "false",
  970. "usage": "pretty prints json, assumes -json"
  971. }
  972. ]
  973. },
  974. {
  975. "name": "reload",
  976. "short": "Reloads configuration from disk, same as sending HUP to the process",
  977. "flags": [
  978. {
  979. "name": "json",
  980. "bool": true,
  981. "default": "false",
  982. "usage": "outputs as json"
  983. },
  984. {
  985. "name": "pretty",
  986. "bool": true,
  987. "default": "false",
  988. "usage": "pretty prints json, assumes -json"
  989. }
  990. ]
  991. },
  992. {
  993. "name": "version",
  994. "short": "Prints the currently running version of nebula",
  995. "flags": [
  996. {
  997. "name": "json",
  998. "bool": true,
  999. "default": "false",
  1000. "usage": "outputs as json"
  1001. },
  1002. {
  1003. "name": "pretty",
  1004. "bool": true,
  1005. "default": "false",
  1006. "usage": "pretty prints json, assumes -json"
  1007. }
  1008. ]
  1009. },
  1010. {
  1011. "name": "whoami",
  1012. "short": "Prints the certificate identity of this node",
  1013. "help": "The fields identity prints, read from this node's own certificate.",
  1014. "flags": [
  1015. {
  1016. "name": "json",
  1017. "bool": true,
  1018. "default": "false",
  1019. "usage": "outputs as json"
  1020. },
  1021. {
  1022. "name": "pretty",
  1023. "bool": true,
  1024. "default": "false",
  1025. "usage": "pretty prints json, assumes -json"
  1026. }
  1027. ]
  1028. }
  1029. ]
  1030. $ help print-cert
  1031. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  1032. The vpn addr is an operand or -address, which may carry a port so a connection's remote address can be passed through as is. For a peer it is the certificate nebula verified when the tunnel came up; with no address it is this node's own, the v2 certificate when both versions are loaded. -raw prints the PEM.
  1033. -address string
  1034. The vpn addr to look up, optionally with a port
  1035. -raw
  1036. prints the PEM encoded certificate; with -json, an object holding it
  1037. -json
  1038. outputs as json
  1039. -pretty
  1040. pretty prints json, assumes -json
  1041. $ help -json print-cert
  1042. {"name":"print-cert","short":"Prints the current certificate being used or the certificate for the provided vpn addr","help":"The vpn addr is an operand or -address, which may carry a port so a connection's remote address can be passed through as is. For a peer it is the certificate nebula verified when the tunnel came up; with no address it is this node's own, the v2 certificate when both versions are loaded. -raw prints the PEM.","flags":[{"name":"address","usage":"The vpn addr to look up, optionally with a port"},{"name":"raw","bool":true,"default":"false","usage":"prints the PEM encoded certificate; with -json, an object holding it"},{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]}
  1043. $ help -pretty print-cert
  1044. {
  1045. "name": "print-cert",
  1046. "short": "Prints the current certificate being used or the certificate for the provided vpn addr",
  1047. "help": "The vpn addr is an operand or -address, which may carry a port so a connection's remote address can be passed through as is. For a peer it is the certificate nebula verified when the tunnel came up; with no address it is this node's own, the v2 certificate when both versions are loaded. -raw prints the PEM.",
  1048. "flags": [
  1049. {
  1050. "name": "address",
  1051. "usage": "The vpn addr to look up, optionally with a port"
  1052. },
  1053. {
  1054. "name": "raw",
  1055. "bool": true,
  1056. "default": "false",
  1057. "usage": "prints the PEM encoded certificate; with -json, an object holding it"
  1058. },
  1059. {
  1060. "name": "json",
  1061. "bool": true,
  1062. "default": "false",
  1063. "usage": "outputs as json"
  1064. },
  1065. {
  1066. "name": "pretty",
  1067. "bool": true,
  1068. "default": "false",
  1069. "usage": "pretty prints json, assumes -json"
  1070. }
  1071. ]
  1072. }
  1073. $ help logout
  1074. logout - Ends the current session
  1075. -json
  1076. outputs as json
  1077. -pretty
  1078. pretty prints json, assumes -json
  1079. $ help -json logout
  1080. {"name":"logout","short":"Ends the current session","flags":[{"name":"json","bool":true,"default":"false","usage":"outputs as json"},{"name":"pretty","bool":true,"default":"false","usage":"pretty prints json, assumes -json"}]}
  1081. $ help -pretty logout
  1082. {
  1083. "name": "logout",
  1084. "short": "Ends the current session",
  1085. "flags": [
  1086. {
  1087. "name": "json",
  1088. "bool": true,
  1089. "default": "false",
  1090. "usage": "outputs as json"
  1091. },
  1092. {
  1093. "name": "pretty",
  1094. "bool": true,
  1095. "default": "false",
  1096. "usage": "pretty prints json, assumes -json"
  1097. }
  1098. ]
  1099. }
  1100. $ logout -h
  1101. logout - Ends the current session
  1102. -json
  1103. outputs as json
  1104. -pretty
  1105. pretty prints json, assumes -json
  1106. $ logout -json -h
  1107. logout - Ends the current session
  1108. -json
  1109. outputs as json
  1110. -pretty
  1111. pretty prints json, assumes -json
  1112. $ logout -pretty -h
  1113. logout - Ends the current session
  1114. -json
  1115. outputs as json
  1116. -pretty
  1117. pretty prints json, assumes -json
  1118. $ not-a-command 10.222.0.9
  1119. did not understand: not-a-command
  1120. Available commands:
  1121. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  1122. close-tunnel - Closes a tunnel for the provided vpn addr
  1123. create-tunnel - Creates a tunnel for the provided vpn address
  1124. device-info - Prints information about the network device.
  1125. help - prints available commands or help <command> for specific usage info
  1126. identity - Prints the certificate identity of the host owning the provided vpn addr
  1127. list-hostmap - List all known previously connected hosts
  1128. list-lighthouse-addrmap - List all lighthouse map entries
  1129. list-pending-hostmap - List all handshaking hosts
  1130. log-format - Gets or sets the current log format
  1131. log-level - Gets or sets the current log level
  1132. logout - Ends the current session
  1133. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  1134. print-relays - Prints json details about all relay info
  1135. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  1136. query-lighthouse - Query the lighthouses for the provided vpn address
  1137. reload - Reloads configuration from disk, same as sending HUP to the process
  1138. version - Prints the currently running version of nebula
  1139. whoami - Prints the certificate identity of this node
  1140. exit status 1
  1141. $ not-a-command -json 10.222.0.9
  1142. did not understand: not-a-command
  1143. Available commands:
  1144. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  1145. close-tunnel - Closes a tunnel for the provided vpn addr
  1146. create-tunnel - Creates a tunnel for the provided vpn address
  1147. device-info - Prints information about the network device.
  1148. help - prints available commands or help <command> for specific usage info
  1149. identity - Prints the certificate identity of the host owning the provided vpn addr
  1150. list-hostmap - List all known previously connected hosts
  1151. list-lighthouse-addrmap - List all lighthouse map entries
  1152. list-pending-hostmap - List all handshaking hosts
  1153. log-format - Gets or sets the current log format
  1154. log-level - Gets or sets the current log level
  1155. logout - Ends the current session
  1156. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  1157. print-relays - Prints json details about all relay info
  1158. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  1159. query-lighthouse - Query the lighthouses for the provided vpn address
  1160. reload - Reloads configuration from disk, same as sending HUP to the process
  1161. version - Prints the currently running version of nebula
  1162. whoami - Prints the certificate identity of this node
  1163. exit status 1
  1164. $ not-a-command -pretty 10.222.0.9
  1165. did not understand: not-a-command
  1166. Available commands:
  1167. change-remote - Changes the remote address used in the tunnel for the provided vpn addr
  1168. close-tunnel - Closes a tunnel for the provided vpn addr
  1169. create-tunnel - Creates a tunnel for the provided vpn address
  1170. device-info - Prints information about the network device.
  1171. help - prints available commands or help <command> for specific usage info
  1172. identity - Prints the certificate identity of the host owning the provided vpn addr
  1173. list-hostmap - List all known previously connected hosts
  1174. list-lighthouse-addrmap - List all lighthouse map entries
  1175. list-pending-hostmap - List all handshaking hosts
  1176. log-format - Gets or sets the current log format
  1177. log-level - Gets or sets the current log level
  1178. logout - Ends the current session
  1179. print-cert - Prints the current certificate being used or the certificate for the provided vpn addr
  1180. print-relays - Prints json details about all relay info
  1181. print-tunnel - Prints json details about a tunnel for the provided vpn addr
  1182. query-lighthouse - Query the lighthouses for the provided vpn address
  1183. reload - Reloads configuration from disk, same as sending HUP to the process
  1184. version - Prints the currently running version of nebula
  1185. whoami - Prints the certificate identity of this node
  1186. exit status 1
  1187. $ reload
  1188. Reloading config
  1189. Config reload failed, the new config did not load: no config files found at
  1190. exit status 1
  1191. $ reload -json
  1192. {"ok":false,"reason":"Config reload failed, the new config did not load: no config files found at "}
  1193. exit status 1
  1194. $ reload -pretty
  1195. {
  1196. "ok": false,
  1197. "reason": "Config reload failed, the new config did not load: no config files found at "
  1198. }
  1199. exit status 1