Skip to content

Commit 66eb1cb

Browse files
committed
Document basic usage from command line
Refs #57
1 parent 791c762 commit 66eb1cb

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ yarn add --dev prettier prettier-plugin-sql-cst
6969
Then use it on SQL files through Prettier command line tool or Prettier extension
7070
for your editor of choice.
7171

72+
For a one-off run you can execute:
73+
74+
```
75+
prettier --plugin prettier-plugin-sql-cst --parser sqlite myfile.sql
76+
```
77+
78+
But generally you're better off using a configuration file.
79+
7280
## Choosing an SQL dialect
7381

7482
By default the plugin will determine SQL dialect based on file extension:

0 commit comments

Comments
 (0)