Cli

CLI Command Search

View as Markdown

AIS CLI is designed for ease of usage. In most cases, there must be no need to spend time reading CLI docs.

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?

In those cases, the search command would be exactly the tool to use.

You can search all supported commands via:

  1. keyword or part of thereof,
  2. regular expression, or
  3. synonym

Return commands containing the search word or synonym.

1$ ais search object
2ais object mv
3ais object rm
4ais show object
5
6$ ais search mountpath
7ais show storage mountpath
8ais storage mountpath attach
9ais storage mountpath detach
10ais storage mountpath disable
11ais storage mountpath enable
12ais storage mountpath show
13ais storage show mountpath
14
15$ ais search create user
16ais auth add user

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.

Search commands using --regex flag

1$ ais search --regex "mv|cp"
2ais cp
3ais bucket mv
4ais object mv