title: Perforce - switch to workspace from command line
body: <p>I am asking how to switch from client1 to client2 where client1 belongs to stream1 and client2 belongs to stream2.</p>
  <p>What I am looking for it to do the same as being in p4v and then right click on a workspace and selecting 'switch to workspace'</p>
  <p>Note, that if your current workspace is client1 and you use:</p>
  <pre><code>p4 client -s -S //DEPOT/stream2
  </code></pre>
  <p>or</p>
  <pre><code>p4 client -s S //DEPOT/stream2 client2
  </code></pre>
  <p>it won't change the workspace in the p4v GUI.</p>