Skip to content

Command Line Interface

Pure Index should typically be used from the command line. You can provide an optional configuration file to simplify command line usage and enable advanced functionality.

Commands

pure-index

Start Pure Index in the current directory.

Terminal window
pure-index

Command line flags

Calling the Pure Index with flags allows you to override the configuration or change its behavior.

property
--entry, -e <path>Overrides the package entry
--collect-usages, -u <pkg-name>Outputs a list of unique package uses. It is helpful if the package index file contains export * syntax. Or to search for all uses of an external package. More info
--helpDisplay available CLI options

Example

Terminal window
pure-index --entry ./src/index.tsx
pure-index -u @my/ui-kit