github.com/NVIDIA/aistore@v1.3.23-0.20240517131212-7df6609be51d/docs/cli/search.md (about) 1 --- 2 layout: post 3 title: SEARCH 4 permalink: /docs/cli/search 5 redirect_from: 6 - /cli/search.md/ 7 - /docs/cli/search.md/ 8 --- 9 10 # CLI Command Search 11 12 AIS CLI is designed for ease of usage. In most cases, there must be no need to spend time reading CLI docs. 13 14 However, when starting to type a command, you may find yourself wondering whether the next keyword you are looking for is, for instance, `ais list`, or `ls`, or maybe `dir`? 15 16 In those cases, the `search` command would be exactly the tool to use. 17 18 You can search all supported commands via: 19 1. keyword or part of thereof, 20 2. regular expression, or 21 3. synonym 22 23 ## Keyword Search 24 25 Return commands containing the search word or synonym. 26 27 ```command 28 $ ais search object 29 ais object mv 30 ais object rm 31 ais show object 32 33 $ ais search mountpath 34 ais show storage mountpath 35 ais storage mountpath attach 36 ais storage mountpath detach 37 ais storage mountpath disable 38 ais storage mountpath enable 39 ais storage mountpath show 40 ais storage show mountpath 41 42 $ ais search create user 43 ais auth add user 44 ``` 45 46 As you can see in the case of `ais search mountpath`, the search tool will list all possible commands containing the `mountpath` keyword, and even the aliased versions of those commands. This is a great way to learn as you go and remind yourself of the commands at your disposal while developing. 47 48 ## Regex pattern search 49 50 Search commands using `--regex` flag 51 52 ```command 53 $ ais search --regex "mv|cp" 54 ais cp 55 ais bucket mv 56 ais object mv 57 ```