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.

19 lines
567 B
Markdown

8 years ago
# Command Line Interface
rqlite comes with a CLI, which can make it easier to interact with cluster. It is installed in the same directory as the cluster binary `rqlited`.
An example session is shown below.
```bash
$ rqlite
127.0.0.1:4001> CREATE TABLE foo (id integer not null primary key, name text)
0 row affected (0.000668 sec)
127.0.0.1:4001> INSERT INTO foo(name) VALUES("fiona")
1 row affected (0.000080 sec)
127.0.0.1:4001> SELECT * FROM foo
+----+-------+
| id | name |
+----+-------+
| 1 | fiona |
+----+-------+
```
Pass `-h` to `rqlite` to learn more.