|
| 1 | +--- |
| 2 | +title: Search |
| 3 | +lang: en-US |
| 4 | +--- |
| 5 | + |
| 6 | +# The `search` Command Documentation |
| 7 | + |
| 8 | +The `chibi search` command allows you to search for anime and manga by providing a query. You can specify the type of media and control the number of results returned. |
| 9 | + |
| 10 | +## Usage |
| 11 | +```bash |
| 12 | +$ chibi search [query...] [flags] |
| 13 | +``` |
| 14 | + |
| 15 | +## Flags |
| 16 | + |
| 17 | +### `-h, --help` |
| 18 | +Provides help information for the `chibi search` command. Use this flag to display details about how the command works and the options available. |
| 19 | + |
| 20 | +#### Example: |
| 21 | +```bash |
| 22 | +$ chibi search --help |
| 23 | +``` |
| 24 | + |
| 25 | +### `-p, --page int` |
| 26 | +Specifies the number of results to be returned. By default, the command will return up to 10 results. You can increase or decrease this value to suit your needs. |
| 27 | + |
| 28 | +#### Example: |
| 29 | +```bash |
| 30 | +$ chibi search "Attack on Titan" --page 5 |
| 31 | +``` |
| 32 | +This command will return up to 5 results for the query `"Attack on Titan"`. |
| 33 | + |
| 34 | +### `-t, --type string` |
| 35 | +Filters the search results by the type of media. Use the full name or shorthand notation: |
| 36 | + |
| 37 | +- `anime` or `a`: Filters for anime. |
| 38 | +- `manga` or `m`: Filters for manga. |
| 39 | + |
| 40 | +If no type is specified, the default type is `anime`. |
| 41 | + |
| 42 | +#### Example: |
| 43 | +```bash |
| 44 | +$ chibi search "One Piece" --type manga |
| 45 | +``` |
| 46 | +This command will search for manga titled `"One Piece"`. |
| 47 | + |
| 48 | +### Combined Example |
| 49 | +You can combine the `--page` and `--type` flags to fine-tune your search results: |
| 50 | + |
| 51 | +```bash |
| 52 | +$ chibi search "Naruto" --type anime --page 3 |
| 53 | +``` |
| 54 | +This command will return up to 3 anime results for the query `"Naruto"`. |
| 55 | + |
| 56 | +## Defaults |
| 57 | +- The default `type` is `anime`. |
| 58 | +- The default `page` is 10 results. |
| 59 | + |
| 60 | +### Example of Default Usage |
| 61 | +```bash |
| 62 | +$ chibi search My Hero Academia |
| 63 | +``` |
| 64 | +This command will search for up to 10 anime results for the query `"My Hero Academia"`. |
| 65 | + |
| 66 | +## Output |
| 67 | +The output will display the search results, including the title, score and id of the media. |
| 68 | + |
| 69 | +Example Output: |
| 70 | +```bash |
| 71 | +┌─────────┬─────────────────────────────────────┬────────┐ |
| 72 | +│ ID │ TITLE │ SCORE │ |
| 73 | +├─────────┼─────────────────────────────────────┼────────┤ |
| 74 | +│ 21459 │ My Hero Academia │ 77.0 │ |
| 75 | +│ 18289 │ My Hero Academia FINAL SEASON │ 0.00 │ |
| 76 | +│ 10072 │ My Hero Academia: Two Heroes │ 74.0 │ |
| 77 | +│ 10427 │ My Hero Academia Season 4 │ 78.0 │ |
| 78 | +│ 13963 │ My Hero Academia Season 6 │ 82.0 │ |
| 79 | +│ 11719 │ My Hero Academia Season 5 │ 73.0 │ |
| 80 | +│ 10016 │ My Hero Academia Season 3 │ 79.0 │ |
| 81 | +│ 16313 │ My Hero Academia Season 7 │ 81.0 │ |
| 82 | +│ 21856 │ My Hero Academia Season 2 │ 79.0 │ |
| 83 | +│ 18573 │ My Hero Academia: Vigilantes │ 00.0 │ |
| 84 | +└─────────┴─────────────────────────────────────┴────────┘ |
| 85 | +``` |
0 commit comments