Lens

Executable command

Linux

You can download the Lens executable by running a single command:

Download the executable:
sudo php -r '$file = "/usr/local/bin/lens"; copy("http://lens.guide/lens.phar", $file); chmod($file, 0755);'

And now you can use Lens in your projects!

View the version information:
lens --version

See the Organization page to get started.

Macintosh

You can download the Lens executable by running a single command:

Download the executable:
sudo php -r '$file = "/usr/local/bin/lens"; @mkdir(dirname($file), 0755, true); copy("http://lens.guide/lens.phar", $file); chmod($file, 0755);'

And now you can use Lens in your projects!

View the version information:
lens --version

See the Organization page to get started.

Windows

You can download the Lens executable by running a single command:

Download the executable:
php -r "$file = 'C:\\Lens\\lens'; $url = 'http://lens.guide/lens'; @mkdir(dirname($file), 0755, true); copy(\"$url.phar\", $file); copy(\"$url.bat\", \"$file.bat\");"

But you’re not done yet! You’ll also need to add the Lens executable to your system path.

First, open the “System Properties” dialog by running this command in the Windows shell:

Open the “System Properties” dialog:
SystemPropertiesAdvanced

Now click on the “Environment Variables” button: Under the "System variables" section, find the “Path” value (you may need to scroll a bit) and add “;C:\Lens” to the end.

And now you can use Lens in your projects!

View the version information:
lens --version

See the Organization page to get started.