Home Explore Blog CI



nushell

commands/docs/attr_search-terms.md
cf8a167d2f4d1804701b1a64102a9d5f9cbc1e1112adea6c0000000300000370
---
title: attr search-terms
categories: |
  core
version: 0.104.0
core: |
  Attribute for adding search terms to custom commands.
usage: |
  Attribute for adding search terms to custom commands.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->

# `attr search-terms` for [core](/commands/categories/core.md)

<div class='command-title'>Attribute for adding search terms to custom commands.</div>

## Signature

```> attr search-terms {flags} ...rest```

## Parameters

 -  `...rest`: Search terms.


## Input/output types:

| input   | output       |
| ------- | ------------ |
| nothing | list\<string\> |
## Examples

Add search terms to a custom command
```nu
> # Double numbers
    @search-terms multiply times
    def double []: [number -> number] { $in * 2 }

```

Chunks
b3df693f (1st chunk of `commands/docs/attr_search-terms.md`)
Title: attr search-terms
Summary
The `attr search-terms` command is used to add search terms to custom commands. It takes a list of strings as input and outputs a list of strings. This allows users to easily find custom commands using keywords.