A command-line toolkit for Laravel Forge.
Choose a binary from releases, download it and move it to a directory that's in your PATH environment variable.
If you're on Windows, you should use george
with Git Bash or another bash-like shell with the ssh
command and the ~/.ssh
directory available.
First, make sure you have Go installed. Then, install george
with:
go get -u github.com/zippoxer/george
If you get george: command not found
, then add $GOPATH/bin
(default for linux is $HOME/go
, for Windows %USERPROFILE%\go
) to your PATH and try again.
Finally, login with API key provided at https://forge.laravel.com/user/profile#/api
george login "<Forge API Key>"
Quickly SSH into a server or site. No need to register your SSH key, george
automatically registers your ~/.ssh/id_rsa.pub
into Forge.
$ george ssh www.example.com
If you've typed in a site domain, george
will drop you right into it's laravel directory!
forge@example-server:~/www.example.com.il$ php artisan fix-website
You can also SSH into a server by it's name or IP address:
george ssh server-name
george ssh 128.64.32.16
Tired of using ssh
, mysqldump
& rsync
only to dump your site's database? Don't worry, george
has got you covered!
A single command to dump a site's database:
george mysqldump www.example.com > example.sql
Behind the scenes, george
compresses the stream with gzip to transfer the dump even faster.
Print a site's laravel.log
:
george log www.example.com
For better viewing experience, you might want to open laravel.log
with Visual Studio Code:
george log www.example.com | code -
Behind the scenes, george
compresses the transfer of the log file with gzip, so even large log files should open within seconds.
Opens a site database in Sequel Pro.
george sequelpro www.example.com
Opens an SFTP connection to a site or server in WinSCP.
george winscp www.example.com
Before george
connects to a server for the first time, it registers your default public SSH key (~/.ssh/id_rsa.pub
) using Forge's API. Unless you switch your SSH key, george
only registers you once per server.
Since the registered key is named after a SHA-2 hash of your public SSH key (GEORGE_<hash of your public key>
), the next time you connect to the same server, george
will notice you're already registered and continue without registering you again.