npm-restart.1 957 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. .TH "NPM\-RESTART" "1" "August 2021" "" ""
  2. .SH "NAME"
  3. \fBnpm-restart\fR \- Restart a package
  4. .SS Synopsis
  5. .P
  6. .RS 2
  7. .nf
  8. npm restart [\-\- <args>]
  9. .fi
  10. .RE
  11. .SS Description
  12. .P
  13. This restarts a package\.
  14. .P
  15. This runs a package's "stop", "restart", and "start" scripts, and associated
  16. pre\- and post\- scripts, in the order given below:
  17. .RS 0
  18. .IP 1. 3
  19. prerestart
  20. .IP 2. 3
  21. prestop
  22. .IP 3. 3
  23. stop
  24. .IP 4. 3
  25. poststop
  26. .IP 5. 3
  27. restart
  28. .IP 6. 3
  29. prestart
  30. .IP 7. 3
  31. start
  32. .IP 8. 3
  33. poststart
  34. .IP 9. 3
  35. postrestart
  36. .RE
  37. .SS Note
  38. .P
  39. Note that the "restart" script is run \fBin addition to\fR the "stop"
  40. and "start" scripts, not instead of them\.
  41. .P
  42. This is the behavior as of \fBnpm\fP major version 2\. A change in this
  43. behavior will be accompanied by an increase in major version number
  44. .SS See Also
  45. .RS 0
  46. .IP \(bu 2
  47. npm help run\-script
  48. .IP \(bu 2
  49. npm help scripts
  50. .IP \(bu 2
  51. npm help test
  52. .IP \(bu 2
  53. npm help start
  54. .IP \(bu 2
  55. npm help stop
  56. .IP \(bu 2
  57. npm help restart
  58. .RE