Search code examples
phplinuxcodeceptionvendor

Link Codeception Vendor Path with Linux


Right now I have a project here:

/srv/www/web/src/private/protected

It has a /vendors/ folder with /codeception in it. I have to currently do:

./vendor/codeception/codeception/codecept run

How can I link this directory/command 'codecept' so I don't have to type the absolute path every time?

I want:

codecept run

Instead of:

./vendor/codeception/codeception/codecept run


Solution

  • In your project folder you could

    ln -s vendor/codeception/codeception/codecept .

    to create a symlink in the current folder.