View Source mix hex.docs (Hex v2.0.6)

Fetches or opens documentation of a package.

If no version is specified, defaults to version used in the current mix project. If called outside of a mix project or the dependency is not used in the current mix project, defaults to the latest version.

fetch-documentation-for-all-dependencies-in-the-current-mix-project

Fetch documentation for all dependencies in the current mix project

$ mix hex.docs fetch

fetch-documentation-for-offline-use

Fetch documentation for offline use

Fetches documentation for the specified package that you can later open with mix hex.docs offline.

$ mix hex.docs fetch PACKAGE [VERSION]

open-a-browser-window-with-offline-documentation

Open a browser window with offline documentation

$ mix hex.docs offline PACKAGE [VERSION]

open-a-browser-window-with-online-documentation

Open a browser window with online documentation

$ mix hex.docs online PACKAGE [VERSION]

command-line-options

Command line options

  • --module Some.Module - Open a specified module documentation page inside desired package
  • --organization ORGANIZATION - Set this for private packages belonging to an organization
  • --latest - Looks for the latest release of a package
  • --format epub - When opening documentation offline, use this flag to open the epub formatted version