snapshot of https://github.com/sqlc-dev/sqlc.git (main, 2026-09-16; blobs > 131072B omitted)
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
Some checks failed
kotlin / test (push) Has been skipped
python / test (push) Has been skipped
typescript / test (push) Has been skipped
go / build darwin/amd64 (push) Has been cancelled
go / build linux/amd64 (push) Has been cancelled
go / build windows/amd64 (push) Has been cancelled
go / build darwin/arm64 (push) Has been cancelled
go / build linux/arm64 (push) Has been cancelled
go / build windows/arm64 (push) Has been cancelled
go / test (push) Has been cancelled
go / vuln_check (push) Has been cancelled
This commit is contained in:
29
docs/reference/cli.md
Normal file
29
docs/reference/cli.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# CLI
|
||||
|
||||
```sh
|
||||
Usage:
|
||||
sqlc [command]
|
||||
|
||||
Available Commands:
|
||||
analyze Analyze a query against a schema and output the result columns and parameters
|
||||
compile Statically check SQL for syntax and type errors
|
||||
completion Generate the autocompletion script for the specified shell
|
||||
createdb Create an ephemeral database
|
||||
diff Compare the generated files to the existing files
|
||||
fmt Format SQL queries
|
||||
generate Generate source code from SQL
|
||||
help Help about any command
|
||||
init Create an empty sqlc.yaml settings file
|
||||
parse Parse SQL and output the AST as JSON
|
||||
push Push the schema, queries, and configuration for this project
|
||||
verify Verify schema, queries, and configuration for this project
|
||||
version Print the sqlc version number
|
||||
vet Vet examines queries
|
||||
|
||||
Flags:
|
||||
-f, --file string specify an alternate config file (default: sqlc.yaml)
|
||||
-h, --help help for sqlc
|
||||
--no-database disable database connections (default: false)
|
||||
|
||||
Use "sqlc [command] --help" for more information about a command.
|
||||
```
|
||||
Reference in New Issue
Block a user