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 git@github.com:burtonjc/google-tasks-cli.git && cd google-tasks-cli- clone the repo andcdinto itnpm install- install the dependenciesnpm run build- build the packagenpm link- create a globalgtcommand
If you wish to set up your own credentials, follow these steps:
- Go to Console Cloud.
- Navigate to
APIs & Services>Enabled APIs & servicesand enable the Google Tasks API. - Configure your
OAuth consent screenadding scopes related to Google Tasks API. - Select
Create CredentialsunderCredentials. - Create a new
OAuth client ID. - Set the application type to
Desktop. - Download the JSON file and replace the
.client.config.jsonin the root folder with it. - Add
http:/localhost:8085/oauth2callbackas an item under theredirect_uriskey in the downloaded JSON file.