[cli] add sandbox detection to telemetry (#4038)