Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation to README.md #29

Merged
merged 1 commit into from
Mar 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 28 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,30 @@
# Neon CLI Client
This is a lightly modified client from [mycroft-core](https://github.com/MycroftAI/mycroft-core/tree/dev/mycroft/client/text).
The CLI can be accessed from a terminal via `neon-cli`.
The CLI can be accessed from a terminal via `neon-cli`.

## CLI Usage
By default, the CLI will use default parameters to connect to a Neon/Mycroft/OVOS
Core instance running on the local host. The following arguments may be passed to
override defaults. This information is also accessible via `neon-cli --help`.

### `--host 0.0.0.0`
The default `0.0.0.0` may be replaced with a different IP address if connecting
to a remote core instance. Note that the messagebus carries unencrypted data, so
enabling remote access is not generally recommended

### `--port 8181`
The default `8181` may be replaced with a different port if the messagebus service
was configured to use a non-default port.

### `--lang en-us`
The language of CLI inputs and expected responses can be set by passing a BCP-47
language code here.

### `--logs-dir ~/.local/state/neon/`
The default log directory is read from configuration, but it may be overridden
here. This is commonly set for Docker connections, where the log path on the host
is not configured for the CLI client.

### `--simple`
This flag will enable a simple text-based CLI showing only inputs and responses.
This can be useful if the default CLI doesn't display properly in a terminal.
2 changes: 1 addition & 1 deletion neon_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
@click.option("--host", "-h", default="0.0.0.0",
help="Host (IP) Address of the messagebus")
@click.option("--port", "-p", default=8181,
help="Host (IP) Address of the messagebus")
help="Port used by the messagebus")
@click.option("--lang", "-l", default="en-us",
help="Language of inputs/responses")
@click.option("--ipc-dir",
Expand Down