When is a current produced?

when the terminals of an electrochemical cell are connected by a wire

if the electric circuit is opened in an electrochemical cell

if the electrolyte is removed from an electrochemical cell

when the electrodes are reversed in an electrochemical cell