User Guide
Installation
In order to use ELVA, run
to install it in its own global environment or via
in your custom one.
After starting a new shell (and perhaps reactivating your environment), the command elva
should be available to you:
Tutorial
First Step
ELVA does not need anything special to start working on shared documents. Type
and you will see ELVA's real-time capable editor.
However, this way, your work is neither saved nor shared.
Connect or Publish
To be able to really share the work you are seeing, you need to specify where to connect to peers. Point ELVA to a websocket server being capable of forwarding websocket messages. You do this with
This publishes the document and its contents on the specified server under a random UUID (v4).
On some servers, you will need to give credentials to authenticate yourself.
Provide them with the --username
and --password
options:
Customize the Identifier
Sometimes, UUIDs are not desired for the sake of readability, sharability or other reasons. You can change the identifier of a document to your liking with
Please note that your custom identifier might have been already chosen by someone else or enables others to guess it.
Save Content Locally
You are now able to contribute to published documents and can continue to do so if this documents remains published by servers or other peers.
This makes you dependent on external resources.
You can address this by specifying a filename:
This saves the document locally on your system and you can work on it even if you are offline. The documents are then merged automatically on the next connection to the synchronizing server.
ELVA saves contents in files with a .y
extension, so with the example above one would get a my-file.md.y
file.
This is basically an SQLite database containing the update history alongside some metadata.
Render Content
To actually get a my-file.md
, you will need to render it from within the ELVA editor.
Save Settings
Typing in server URLs or identifiers is cumbersome. So instead you can save those information in several places ELVA reads them from:
- in the global
elva.toml
- in the project's
elva.toml
- in the
.y
-file
Those obey a specified order of precedence (from highest to lowest):
- command line arguments
- the
.y
-file - the project's
elva.toml
- the global
elva.toml
- defaults
ELVA reads in configuration files automatically and the result can be printed with
You can also specify a path to a certain elva.toml
configuration file:
Apps
Editor
The built in editor can be used for any plain text file.
Chat
The chat enables real-time previews of composed messages and stores the history.
Service
The service is mainly intended for background synchronization.