spm.rst 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. .. _spm-cli:
  2. =======
  3. ``spm``
  4. =======
  5. :ref:`Salt Package Manager <spm>`
  6. Synopsis
  7. ========
  8. .. code-block:: bash
  9. spm <command> [<argument>]
  10. Description
  11. ===========
  12. spm is the frontend command for managing Salt packages. Packages normally only
  13. include formulas, meaning a group of SLS files that install into the
  14. ``file_roots`` on the Salt Master, but Salt modules can also be installed.
  15. Options
  16. =======
  17. .. program:: spm
  18. .. option:: -y, --assume-yes
  19. Assume ``yes`` instead of prompting the other whether or not to proceed
  20. with a particular command. Default is False.
  21. .. option:: -f, --force
  22. When presented with a course of action that spm would normally refuse to
  23. perform, that action will be performed anyway. This is often destructive,
  24. and should be used with caution.
  25. .. include:: _includes/logging-options.rst
  26. .. |logfile| replace:: /var/log/salt/spm
  27. .. |loglevel| replace:: ``warning``
  28. Commands
  29. ========
  30. .. program:: spm
  31. .. option:: update_repo
  32. Connect to remote repositories locally configured on the system and download
  33. their metadata.
  34. .. option:: install
  35. Install a package from a configured SPM repository. Requires a package name.
  36. .. option:: remove
  37. Remove an installed package from the system. Requires a package name.
  38. .. option:: info
  39. List information about an installed package. Requires a package name.
  40. .. option:: files
  41. List files belonging to an installed package. Requires a package name.
  42. .. option:: local
  43. Perform one of the above options (except for remove) on a package file,
  44. instead of on a package in a repository, or an installed package. Requires
  45. a valid path to a local file on the system.
  46. .. option:: build
  47. Build a package from a directory containing a FORMULA file. Requires a valid
  48. path to a local directory on the system.
  49. .. option:: create_repo
  50. Scan a directory for valid SPM package files and build an SPM-METADATA file
  51. in that directory which describes them.
  52. See also
  53. ========
  54. :manpage:`salt(1)`
  55. :manpage:`salt-master(1)`
  56. :manpage:`salt-minion(1)`