1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
925 B
Markdown

# rqlite
9 years ago
`rqlite` is a command line tool for connecting to a rqlited node.
9 years ago
## Build
```sh
go build -o rqlite
9 years ago
```
## Usage
```sh
8 years ago
$> rqlite -h
9 years ago
Options:
-h, --help
display help
8 years ago
-s, --scheme[=http]
protocol scheme (http or https)
9 years ago
-H, --host[=127.0.0.1]
rqlited host address
-p, --port[=4001]
8 years ago
rqlited host port
-P, --prefix[=/]
rqlited HTTP URL prefix
--insecure[=false]
do not verify rqlited HTTPS certificate
9 years ago
```
## Example
```sh
# start rqlited
$> rqlited ~/node.1
# start rqlite CLI
8 years ago
$> rqlite
# now, we have entered the rqlite terminal
127.0.0.1:4001> CREATE TABLE foo (id INTEGER NOT NULL PRIMARY KEY, name TEXT)
9 years ago
1 row affected (0.015 sec)
127.0.0.1:4001> INSERT INTO foo(name) VALUES("fiona")
9 years ago
1 row affected (0.055 sec)
127.0.0.1:4001> SELECT * FROM foo
9 years ago
+----+-------+
| id | name |
+----+-------+
| 1 | fiona |
+----+-------+
127.0.0.1:4001> quit
bye~
$>
```