Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions products/tools/cli/project-commands/sql.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@ A SQL script can also be provided via stdin:

shopware-cli project sql < script.sql

## Running a script from a file
Comment thread
shyim marked this conversation as resolved.

Use the `--file` flag to execute a SQL script from disk:

```bash
shopware-cli project sql --file script.sql
```

`--file` cannot be combined with a query argument. A missing file is reported before the database connection opens.

## Output format

Use the `--format` flag to control the output format: `table`, `tsv`, or `json`.
Expand Down