Hi, I'm new to prefect. I've been trying to setup ...
# ask-community
a
Hi, I'm new to prefect. I've been trying to setup Prefect on my local machine and I'm having a difficulty understanding how to start Prefect CLI? I'm trying to run basic commands like "prefect backend cloud" but it is not recognising the "Prefect" command to begin with. Is there a documentation which I can refer to setup Prefect CLI?
a
Just checking, but did you follow the basic installation instructions given here? https://docs.prefect.io/core/getting_started/install.html#basic-installation If you did, then prefect should be available on the CLI. In my case, I installed prefect in a virtual env with poetry, so I prefix prefect as
poetry run prefect
upvote 2
a
I followed the steps mentioned in the instructions. But CLI wasn't able to recognise prefect because it's path wasn't added to the system environment variables. I added the Script path to System Environment Path ,now it is working fine.