If you were already signed in, you can run cf target -s <SPACE_NAME>. Alternatively you can try to login again and you'll get a prompt allowing you to choose the space.
cf target -s <SPACE_NAME>