I'm assuming you have used 'pretext new' or something to create your new project. This should have created a folder in your home directory. To use the CLI, you then need to cd into that directory first.
So in the terminal, do cd *yourfoldername* and then you'll be able to use pretext build, pretext view etc.