Add a CLI diagnostics command