command cli + socket