Add instructions on configuring CLI (#251)

This commit is contained in:
Sung Won Cho 2019-09-07 12:46:12 +10:00 committed by GitHub
commit bda05f71f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -122,3 +122,20 @@ UPDATE users SET cloud = true FROM accounts WHERE accounts.user_id = users.id AN
```
Replace `$yourEmail` with the email you used to create the account.
### Configure clients
Let's configure Dnote clients to connect to the self-hosted web API endpoint.
#### CLI
We need to modify the configuration file for the CLI. It should have been generated at `~/.dnote/dnoterc` upon running the CLI for the first time.
The following is an example configuration:
```yaml
editor: nvim
apiEndpoint: https://api.dnote.io
```
Simply change the value for `apiEndpoint` to a full URL to the self-hosted instance, and save the configuration file.