Giter VIP home page Giter VIP logo

forge-ssh-assistant's Introduction

Logo

Total Downloads

Forge SSH Assistant is a CLI tool built with Laravel Zero for macOS and Linux that fetches your Laravel Forge servers and lists these in a menu so you can easily choose which server you want to connect to using SSH.

With Forge SSH Assistant you don't have to open Laravel Forge to check the IP address of the server(s) you want to work with.

You don't have to maintain aliases on every machine you use for development, all Forge SSH Assistant needs is a valid Laravel Forge token to be able to access your Laravel Forge account and fetch a list of your servers.


Installation

You can install Forge SSH Assistant through Composer like this:

composer global require wackystudio/forge-ssh-assistant

This will install Forge SSH Assistant globally on your machine. Make sure to add Composers global bin directory to your $PATH so the Forge SSH Assistant can be accessed anywhere.

The Composer global bin directory is placed differently based on your operation system and some common locations are:

  • macOS: $HOME/.composer/vendor/bin
  • GNU / Linux Distributions: $HOME/.config/composer/vendor/bin

After the installation you will be able to run Forge SSH Assistant through the forge command.

Adding a token

To be able to interact with one or more Laravel Forge account(s), Forge SSH Assistant needs a valid Laravel Forge token together with a name of the account the token belongs to.

To create a token you'll need to head into your account settings on Laravel Forge and choose API in the menu.

Here you should create a new token, you can name it whatever you want but we recommend that you name it Forge SSH Assistant <computer-name> where you replace the <computer-name> with the actual name of your computer, such as Office or MacBook Pro

An overlay will open with the actual token, which you should copy. Make sure that you copy everything.

Go into your terminal and run the following command and replace the <the-name-of-the-token> with the name of your token or the Forge account this belongs to and replace <the-token-copied-from-laravel-forge> with the actual token you copied from Laravel Forge:

forge token:add <the-name-of-the-token> <the-token-copied-from-laravel-forge>

To test that everything works, run the following command:

forge ssh

You should now be able to see the servers you have provisioned through Laravel Forge and select these to SSH into them.

License

Forge SSH Assistant is an open-source software licensed under the MIT license.

forge-ssh-assistant's People

Contributors

jpmurray avatar spekulatius avatar thomasnoergaard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

frogmarketmedia

forge-ssh-assistant's Issues

[Request] Multiple API sources?

Hello,

I haven't dug into the code yet, I might be able to look at it and make a proposition later on but, would a way to add multiple API keys so we have multiple sources of servers? (Personally, I have access to my own Forge account and a client's, so that'd be handy!)

What would you think?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.