Skip to content

Commit 2ba25f1

Browse files
committed
update README.md
add installation for linux amd64 and .pgpass sections
1 parent 2b49029 commit 2ba25f1

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

README.md

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# sql2csv
1+
# sql2csv-cmd
22

33
[![GoDoc](https://godoc.org/github.com/frederikhs/sql2csv-cmd?status.svg)](https://godoc.org/github.com/frederikhs/sql2csv-cmd)
44
[![Quality](https://goreportcard.com/badge/github.com/frederikhs/sql2csv-cmd)](https://goreportcard.com/report/github.com/frederikhs/sql2csv-cmd)
@@ -36,3 +36,29 @@ sql2csv-cmd -d db.example.com -q "SELECT * FROM public.users" -o users.csv
3636
```shell
3737
sql2csv-cmd -d db.example.com -f query.sql -o query.csv
3838
```
39+
40+
## Installation
41+
42+
### Linux amd64
43+
44+
```bash
45+
# install
46+
curl -L https://github.com/frederikhs/sql2csv-cmd/releases/latest/download/sql2csv-cmd_Linux_x86_64.tar.gz -o sql2csv-cmd.tar.gz
47+
tar -xvf sql2csv-cmd.tar.gz
48+
sudo mv sql2csv-cmd /usr/local/bin/sql2csv-cmd
49+
50+
# clean up
51+
rm sql2csv-cmd.tar.gz
52+
```
53+
54+
## .pgpass
55+
56+
sql2csv-cmd uses the `.pgpass` file that resides in the `$HOME` directory of the user running the program.
57+
58+
---
59+
60+
Example of a connection configuration in the `.pgpass` file
61+
62+
```
63+
<HOST>:<PORT>:<DATABASE>:<USERNAME>:<PASSWORD>
64+
```

0 commit comments

Comments
 (0)