INCUS.ADMIN.SQL(1)
π incus-admin-sql (from the Incus - Command line client manual, bestie π)
okay so picture this: you're deep in your Incus era, something in the database is acting up, and you need to go poke it directly. That's this page. Sit down, grab a strawberry π, and let's get into it.
β¨ NAME β¨
incus-admin-sql β run a SQL query against the local or global database, no cap ποΈ
πΈ SYNOPSIS πΈ
incus admin sql β¨local|globalβ© [flags]
π¦ DESCRIPTION π¦
Here's the vibe, bestie:
Description: Execute a SQL query against the local or global database
So the local database is the one that belongs specifically to the cluster member you aimed the command at, and it's holding all the member-specific tea (like that member's network address, iykyk).
The global database is the shared one β every member in the cluster has it, and it's where the cluster-wide stuff lives (profiles, containers, that kind of thing π).
And here's the part people always get wrong: non-clustered servers still have both databases. Both. Always. Periodt.
Now, the <query> argument is lowkey a shapeshifter, so let's do a vibe check on its special values:
- If
<query>is the special value-, the query gets read from standard input π₯ - If
<query>is the special value.dump, the command hands you back a SQL text dump of the database you asked for ποΈ - If
<query>is the special value.schema, you get the SQL text schema of that database π - If
<query>is the special value.tables, you get the SQL text tables of that database π
β οΈ Real talk: this is an internal command, and it's mostly here for debugging and disaster recovery. The development team will occasionally hand users hotfixes as a set of database queries to fix some data inconsistency. So likeβ¦ it's not a casual little toy, it's the emergency kit under the sink. π§―
β¨ OPTIONS β¨
-f,--format="table"β sets theFormat (csv|json|table|yaml|compact|markdown), use suffix ",noheader" to disable headers and ",header" to enable it if missing, e.g. csv,headerβ so yes, you can just slap,headeron there when you want headers, or,noheaderwhen you don't π
π OPTIONS INHERITED FROM PARENT COMMANDS π
--debug[=false]β show all the debug messages, every last one π--explain[=false]β if the command is valid, it explains its parsed arguments instead of actually running it (a little "what would happen" moment) π§--force-local[=false]β force using the local unix socket π-h,--help[=false]β print help π--project=""βOverride the source projectποΈ-q,--quiet[=false]β don't show progress information, shhh π€«--sub-commands[=false]β use this withhelpor--helpto view sub-commands πͺ-v,--verbose[=false]β show all information messages, the chatty setting π’--version[=false]β print the version number π·οΈ
π SEE ALSO π
incus-admin(1)π«Ά
π HISTORY π
24-Sep-2026β auto generated by spf13/cobra π€
and that's the whole page, babe π it's the Incus - Command line client manual, auto generated by spf13/cobra, dated Sep 2026 β go forth and query responsibly, mwah πβ¨
π¦ where this page comes from
- ubuntu stonking: incus-client 7.0.1-5 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms