2019-11-05 14:55:08 -05:00
|
|
|
---
|
|
|
|
section: cli-commands
|
|
|
|
title: npm-help-search
|
|
|
|
description: Search npm help documentation
|
|
|
|
---
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
# npm-help-search
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
## Search npm help documentation
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Synopsis
|
|
|
|
|
|
|
|
```bash
|
|
|
|
npm help-search <text>
|
|
|
|
```
|
|
|
|
|
|
|
|
### Description
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
This command will search the npm markdown documentation files for the
|
|
|
|
terms provided, and then list the results, sorted by relevance.
|
|
|
|
|
|
|
|
If only one result is found, then it will show that help topic.
|
|
|
|
|
|
|
|
If the argument to `npm help` is not a known help topic, then it will
|
|
|
|
call `help-search`. It is rarely if ever necessary to call this
|
|
|
|
command directly.
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### Configuration
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
#### long
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
* Type: Boolean
|
2016-03-29 23:30:51 -07:00
|
|
|
* Default: false
|
2011-11-21 09:48:45 -08:00
|
|
|
|
|
|
|
If true, the "long" flag will cause help-search to output context around
|
|
|
|
where the terms were found in the documentation.
|
|
|
|
|
|
|
|
If false, then help-search will just list out the help topics found.
|
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
### See Also
|
2011-11-21 09:48:45 -08:00
|
|
|
|
2019-11-05 14:55:08 -05:00
|
|
|
* [npm](/cli-commands/npm)
|
|
|
|
* [npm help](/cli-commands/npm-help)
|