Not that it probably would have helped in this situation, but maybe useful for others.
Usually if I have to enter secrets in my shell, I do something like this in order to save the useful stuff to history but hiding the secrets:
- ` export PASSWORD=hunter2` (notice the space before "export")
- `service-cli login username $PASSWORD` (no space before, gets saved to shell history)