On this page
Fleare CLI Installation
Fleare CLI is a command-line client designed for communicating with a Fleare in-memory server. It allows users to send commands, authenticate, and receive responses in a structured format.
Check installation status
Verify that Fleare CLI is installed and accessible:
fleare-cli version
Expected response:
fleare-cli
Version: v1.0.1
Build Date: 2025-07-05
Connecting localhost with enable_auth: false
fleare-cli
Ok Connected
127.0.0.1:9219>
Command-Line Arguments
Authenticate
The CLI accepts the following command-line arguments:
Flag | Description | Default |
---|---|---|
-host |
Server host address | 127.0.0.1 |
-port |
Server port | 9219 |
-u |
Username for authentication | Optional |
-p |
Password for authentication | Optional |
Example usage:
fleare-cli -host 192.168.0.1 -port 9219 -u admin -p <secret>
Features
- Authentication: Authenticate using a username and password.
- Command Execution: Send structured commands to the Fleare server.
- Response Parsing: Automatically parse and display JSON responses.
- Command History: Maintains history at
~/.Fleare_history
. - Graceful Exit: Supports
CTRL+C
for safe termination.
Authentication Flow
Once the CLI establishes a TCP connection to the server:
- It sends the provided username and password.
- If credentials are valid, the server responds with:
Ok Connected
127.0.0.1:9219>
After a successful connection, you can begin issuing commands immediately.
More Configuration
Visit Fleare config