1v0.2.1

CLI & Environment Variables

Complete configuration reference for Binsight command line flags and environment variables.

Binsight follows 12-factor application design principles. Every configuration option can be passed via command line flags or defined as environment variables prefixed with BINSIGHT_.

Command Line Flags

FlagDefaultDescription
--bind127.0.0.1Network interface to listen on. Use 0.0.0.0 inside containers.
--port8080HTTP server port for the visual console.
--data-dir~/.binsightDirectory where the local SQLite index cache is stored.
--clean-indexfalseWipes the SQLite index on startup and forces a re-index.
--stream.enabledfalseEnables live MySQL replication streaming over port 3306.
--stream.host127.0.0.1Remote MySQL primary / replica hostname or IP.
--stream.port3306Remote MySQL server port.
--stream.userrootReplication user account name.
--stream.flavormysqlProtocol dialect: mysql or mariadb.

Environment Variables (BINSIGHT_*)

For Docker and systemd deployments, configure options via environment variables:

Environment VariableEquivalent Flag
BINSIGHT_BIND--bind
BINSIGHT_PORT--port
BINSIGHT_DATA_DIR--data-dir
BINSIGHT_STREAM_ENABLED--stream.enabled
BINSIGHT_STREAM_HOST--stream.host
BINSIGHT_STREAM_PASSWORD--stream.password

Configuration Precedence

When options are defined in multiple locations, Binsight evaluates them in the following order:

  1. Command line flags (highest precedence)
  2. Environment variables (BINSIGHT_*)
  3. Built-in application defaults (lowest precedence)
ESC
Quick Commands
Navigation
↑ ↓ navigate↵ select