Get help
usql prints help about its own commands at the prompt and on the command line. For a question that the help does not answer, ask on GitHub.
At the prompt
Section titled “At the prompt”help prints a short list of where to start:
sq:books.db=> helpYou are using usql, the universal command-line interface for SQL databases.Type: \copyright for distribution terms \? for help with usql commands \g or terminate with semicolon to execute query \q to quit\? lists every meta command, in groups, with its arguments. A meta command is a command that starts with a backslash. Add a word to \? for other help:
| Command | What it shows |
|---|---|
\? |
the meta commands |
\? commands |
the meta commands, with their aliases and the aliases of config.yaml |
\? options |
the options of the command line |
\? variables |
the settings, the variables and the environment variables, and the path of config.yaml on your system |
\? styles |
the styles of syntax highlighting, and the style in use |
usql shows long help in the pager. The pager is the program that PAGER names, or less when PAGER is not set. In less, press q to go back to the prompt.
usql has no \h or \help, so it gives no help on SQL statements. Read the manual of your database for the SQL.
On the command line
Section titled “On the command line”usql --helpusql prints its options and exits.
usql --versionusql prints its version. Give the version when you ask a question or report a problem.
Ask a question
Section titled “Ask a question”Ask a question in the discussions of usql on GitHub. Search the discussions first. Another person probably asked the same question.
If usql does something wrong, open an issue in the issues of usql. Give the version of usql, the database and its version, the commands that you typed, and what usql printed.
The README of usql describes every feature of usql. The reference lists the command line options, the meta commands, the settings and variables and the environment variables.