Skip to content

CLI

sqlcockpit, the command line for your SQL Cockpit account: tenants, team, Agents, instances, usage and support tickets.

Install

Guide

Install with the script, with PowerShell on Windows, or with npm install -g github:sql-cockpit/sql-cockpit-cli (Node.js 20 or later).

    Log in

    Guide

    sqlcockpit login checks and saves a portal API key in ~/.sqlcockpit.conf. SQL_COCKPIT_API_KEY, SQL_COCKPIT_PORTAL_URL and SQL_COCKPIT_PROFILE override the file.

      Examples

      Guide

      sqlcockpit account; sqlcockpit agent list --status active; sqlcockpit team list <tenant-id> -o json; sqlcockpit ticket create.

        Commands

        Guide

        account, usage, tenant list, team list/add/role/remove/resend, agent list, instance list, ticket list/get/create, login, logout, config, completion, version, help.

          Global options

          Guide

          -o/--output table, json or yaml; --profile; --portal-url; -d/--debug; -h/--help.