---
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 }
```