File: help_commands.txt

package info (click to toggle)
mycli 1.44.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,052 kB
  • sloc: python: 9,168; makefile: 10
file content (36 lines) | stat: -rw-r--r-- 3,960 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
+----------------+----------------------------+------------------------------------------------------------+
| Command        | Shortcut                   | Description                                                |
+----------------+----------------------------+------------------------------------------------------------+
| \G             | \G                         | Display current query results vertically.                  |
| \clip          | \clip                      | Copy query to the system clipboard.                        |
| \dt            | \dt[+] [table]             | List or describe tables.                                   |
| \e             | \e                         | Edit command with editor (uses $EDITOR).                   |
| \f             | \f [name [args..]]         | List or execute favorite queries.                          |
| \fd            | \fd [name]                 | Delete a favorite query.                                   |
| \fs            | \fs name query             | Save a favorite query.                                     |
| \l             | \l                         | List databases.                                            |
| \llm           | \ai                        | Interrogate LLM.                                           |
| \once          | \o [-o] filename           | Append next result to an output file (overwrite using -o). |
| \pipe_once     | \| command                 | Send next result to a subprocess.                          |
| \timing        | \t                         | Toggle timing of commands.                                 |
| connect        | \r                         | Reconnect to the database. Optional database argument.     |
| delimiter      | <nope>                     | Change SQL delimiter.                                      |
| exit           | \q                         | Exit.                                                      |
| help           | \?                         | Show this help.                                            |
| nopager        | \n                         | Disable pager, print to stdout.                            |
| notee          | notee                      | Stop writing results to an output file.                    |
| nowarnings     | \w                         | Disable automatic warnings display.                        |
| pager          | \P [command]               | Set PAGER. Print the query results via PAGER.              |
| prompt         | \R                         | Change prompt format.                                      |
| quit           | \q                         | Quit.                                                      |
| redirectformat | \Tr                        | Change the table format used to output redirected results. |
| rehash         | \#                         | Refresh auto-completions.                                  |
| source         | \. filename                | Execute commands from file.                                |
| status         | \s                         | Get status information from the server.                    |
| system         | system [command]           | Execute a system shell commmand.                           |
| tableformat    | \T                         | Change the table format used to output results.            |
| tee            | tee [-o] filename          | Append all results to an output file (overwrite using -o). |
| use            | \u                         | Change to a new database.                                  |
| warnings       | \W                         | Enable automatic warnings display.                         |
| watch          | watch [seconds] [-c] query | Executes the query every [seconds] seconds (by default 5). |
+----------------+----------------------------+------------------------------------------------------------+