brew tap cutzenfriend/homebrew-cmdg
brew install cmdg
For documentation and initial configuration refer to: https://github.com/ThomasHabets/cmdg
Copyright Thomas Habets [email protected] 2015-2021
You need to configure cmdg
in order to provide it with authentication
so it can talk to GMail on your behalf. To do this you'll need to generate
a ClientID and ClientSecret. You can do this with the following steps:
- Go to the Google Developers Console.
- Select an existing project or create a new project
- Navigate to the "APIs & Services > OAuth consent screen" page.
- Fill out the OAuth consent screen.
- Make sure to add scopes for the various APIs you'll need
- Drive API -
.../auth/drive.appdata
- Gmail API -
../auth/gmail.modify
- People API -
.../auth/contacts.readonly
- Drive API -
- Click the button "Create Credentials" and select "OAuth client ID" from the dropdown.
- Set the "Application type" to "Desktop app" and make the name anything you'd like.
- This should give you a Client ID and Client Secret you can provide to
cmdg
.
$ cmdg -configure
[It will ask about ClientID and ClientSecret.
For now you have create one at https://console.developers.google.com]
Cut and paste this URL into your browser:
https://long-url....
Returned code: <code shows up here, just FYI>
$
This creates ~/.cmdg/cmdg.conf
.
$ cmdg
For keyboard shortcuts press '?' or F1 in most screens.
To quit, press 'q'.