# How do I install an extension directly from git?

Now that I have found my extension directory, is installing an experimental (or developmental) extension as simple as cloning it into there? eg:

# find extension directory
DIR=$(cv ev --out=pretty 'return (new CRM_Extension_System())->getDefaultContainer()->baseDir') # change to extension directory cd$DIR
# clone repo
git clone git@github.com:civicrm/api4.git
# flush cache
cv flush
# enable
cv ext:enable api4


(obviously some git remote voodoo required still but just wanting to confirm that this is the basics)

• That all looks correct to me. Is it not working? – Coleman Jan 23 '17 at 3:23
• yes it's working - but I couldn't find process documented anywhere so wanted to confirm before adding to the dev guide! – ErichBSchulz Jan 23 '17 at 3:59
• Installing an extension manually is mentioned here: wiki.civicrm.org/confluence/display/CRMDOC/… – tabletguy Feb 10 '17 at 8:41