edit

Log In Using Floyd CLI

Quick Preparation Checklist

You can use the floyd login command to log in to your FloydHub account through your command line

Logging In Using Username and Password

floyd login has a --username (or -u) flag and a --password (or -p) flag that are used for logging in with the username and password. You can pass both at the same time, or if you pass only the -u (or --username) flag with your username, you'll be prompted for you password:

$ floyd login -u mckay
Please enter your password:
Login Successful as mckay

Logging in Using an Auth Token

If you don't pass the -u (or --username) flag to floyd login, you will be logging in using an auth token.

Here's an example of the standard workflow:

$ floyd login
Authentication token page will now open in your browser. Continue? [Y/n]: y
Please copy and paste the authentication token.
This is an invisible field. Paste token and press ENTER:

This will open your browser and display your authentication token. You can also access this directly at floydhub.com/settings/security. (Note: only visible if you are logged in to your web dashboard).

Windows 10 Login

Copy the token and paste it in your terminal.

Logging in with an Auth Token Without Opening a Browser

Sometimes you may need to log in to Floyd on a computer that can't open a browser. Using your token from floydhub.com, you can log in without opening a browser by passing the --token flag to floyd login:

$ floyd login --token
Please copy and paste the authentication token.
This is an invisible field. Paste token and press ENTER:
Login Successful

Having problems with logging in using floyd-cli?