A minimal CLI wrapper for Google Tasks.
> gt --help
A CLI wrapper for Google Tasks
Usage
$ gt <command> [options] ...
Global Options
--help, -h Show help text
Commands
auth Manage authenticated Google accounts
lists Manage task lists
tasks Manage tasks
You must first login to a Google account using the gt auth login
command and completing the OAuth flow. Other commands will not work until you are authenticated.
Due to no good way to store Google OAuth client credentials in a cli package, I have decided to not publish this to NPM for now. That means to install this, you need to clone it and npm link it:
git clone [email protected]:burtonjc/google-tasks-cli.git && cd google-tasks-cli
- clone the repo andcd
into itnpm install
- install the dependenciesnpm run build
- build the packagenpm link
- create a globalgt
command
If you wish to set up your own credentials, follow these steps:
- Go to Console Cloud.
- Navigate to
APIs & Services
>Enabled APIs & services
and enable the Google Tasks API. - Configure your
OAuth consent screen
adding scopes related to Google Tasks API. - Select
Create Credentials
underCredentials
. - Create a new
OAuth client ID
. - Set the application type to
Desktop
. - Download the JSON file and replace the
.client.config.json
in the root folder with it. - Add
http:/localhost:8085/oauth2callback
as an item under theredirect_uris
key in the downloaded JSON file.