DocumentationDeployment

    10

    CLI Commands

    CLI Commands

    FlowPro NG includes command-line tools for system administration. These commands are installed automatically with the flowpro-server package and are available in /usr/local/bin/.

    CommandDescription
    flowpro-statusDisplays system status — installed packages, services, database schema, and quick health check
    flowpro-reset-passwordLists users and resets forgotten passwords

    The flowpro-status command provides a comprehensive overview of the FlowPro NG system health. It checks installed packages, service status, database schema versions, and performs a quick health check of Elasticsearch, the backend API, and disk usage.

    bash
    flowpro-status
    flowpro-status output
    Example output of flowpro-status

    Output sections:

    SectionDescription
    PackagesInstalled versions of all FlowPro .deb packages (flowpro-server, flowpro-backend, flowpro-frontend, flowpro-kafka, flowpro-geoip, flowpro-nfacctd, flowpro-honeypot)
    ServicesStatus of all system services — green (active), red (inactive), yellow (not configured)
    Database SchemaPostgreSQL Alembic revision and database migration count
    Quick HealthElasticsearch cluster health (green/yellow/red), Backend API status, disk usage percentage
    Run flowpro-status after every upgrade to verify that all packages, services, and databases are in a healthy state.

    The flowpro-reset-password command allows administrators to list users and reset forgotten passwords directly from the command line. It connects directly to the local PostgreSQL database.

    List users:

    bash
    flowpro-reset-password list
    flowpro-reset-password list output
    Example output of flowpro-reset-password list

    Available commands:

    CommandDescription
    flowpro-reset-password listList all FlowPro users
    flowpro-reset-password set <user> <pass>Set new password for a FlowPro user
    Resetting a FlowPro user's password also disables their two-factor authentication (TOTP). The user will need to re-enable 2FA in Settings after logging in with the new password.
    This command requires root or sudo privileges. It connects directly to the PostgreSQL database.