0

Dears,

I installed CV using composer require civicrm/cv but when I run a command SSH says 'cv: command not found'.

What did I forget ?

Stefaan

1 Answer 1

0

http://www.linfo.org/path_env_var.html. If that doesn't help then search the internet for more explanations about what the unix PATH variable is, e.g. https://www.google.com/search?q=what+is+the+PATH+in+unix

But I'd also consider just downloading cv and then putting it somewhere that's already in your PATH, possibly /usr/local/bin.

You can also just specify the full path, e.g. /path/to/your/site/vendor/civicrm/cv/bin/cv (or whereever it ended up getting installed).

4
  • Tnx Demerit, the files are where they are supposed to be. (in cgi-bin and the vendor folder)
    – Stefaan H
    Commented Nov 23, 2022 at 20:49
  • Ok, but your PATH probably doesn't contain those folders, so you either need to (a) update your PATH, or (b) download/move/copy the cv executable to somewhere in your path (like /usr/local/bin), or (c) give the full path when running cv.
    – Demerit
    Commented Nov 23, 2022 at 21:00
  • I have two environments: the live website and a local Xampp for testing? Neither have the folders you specify :(
    – Stefaan H
    Commented Dec 5, 2022 at 19:52
  • Those were examples. Where is your cv? Use that for either (a) or (c). What does echo $PATH show? Use something in there for (b).
    – Demerit
    Commented Dec 5, 2022 at 23:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.