Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miska/clickup_cli
Simple unofficial CLI for ClickUp
https://github.com/miska/clickup_cli
cli clickup nodejs
Last synced: 1 day ago
JSON representation
Simple unofficial CLI for ClickUp
- Host: GitHub
- URL: https://github.com/miska/clickup_cli
- Owner: miska
- License: gpl-3.0
- Created: 2021-12-19T21:59:27.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2021-12-28T22:48:56.000Z (about 3 years ago)
- Last Synced: 2024-12-06T06:59:29.158Z (about 1 month ago)
- Topics: cli, clickup, nodejs
- Language: JavaScript
- Homepage:
- Size: 28.3 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.asciidoc
- License: COPYING
Awesome Lists containing this project
README
ClickUp CLI
===========This is a simple app to display tasks from ClickUp service. It is in early
stages of development, so use with care and nothing is set in stone yet.Dependencies
------------It is written in JavaScript. So it requires Node.js to run. Apart from
that, it combines two packages
https://www.npmjs.com/package/cli-table[cli-table] and
https://www.npmjs.com/package/clickup.js[clickup.js].You can install it using the following command:
---------------------------------------------------------------------------
yarn install
---------------------------------------------------------------------------Usage
-----To be able to use it, you need to obtain a personal token from ClickUp
(_User settings -> My Apps -> Apps_) and put it into a configuration file
`~/.config/clickup/config`. This configuration file is _json_ and you can
see the example one bellow.---------------------------------------------------------------------------
{
"token": "pk_12345678_1234567890ABCDEFGHIJKLMNOPQRSTUV",
"sync_always": true,
"style": {
"head": ["yellow"],
"border": ["cyan"],
"tasks": ["green", "bgBlack"]
}
}
---------------------------------------------------------------------------Configuration options
~~~~~~~~~~~~~~~~~~~~~`token`
^^^^^^^Your personal token to access ClickUp API.
`sync_always`
^^^^^^^^^^^^^With every call update local cache first. Slower, but you don't risk being
out of date.`style`
^^^^^^^Style to apply to the table. For more options see documentation
of https://www.npmjs.com/package/cli-table[cli-table] and
https://github.com/marak/colors.js[colors.js]. Typical setup is
color styling of header using
https://github.com/marak/colors.js#text-colors[text colors] and
https://github.com/marak/colors.js#background-colors[background
colors]. Except of `head` you can also similarly style border
using `border` key and tasks using `tasks` key.CLI Usage
---------Simplest usage is simply calling the application.
---------------------------------------------------------------------------
tasks
---------------------------------------------------------------------------This will output the list of all your tasks in a nice ascii
table.You can use additional commands and filters to modify the
behaviour.Commands
~~~~~~~~`sync`
^^^^^^Calling the application with sync command will cause it to
always download latest version of tasks from the web.Filters
-------Apart from commands, you can append filters to the command line. Syntax is
`filter value`. Filter can be one of the following keywords:* team
* space
* folder
* list
* taskThe value argument is the case-insensitively compared to the name of the
appropriate structure in task hierarchy and only tasks that belong to the
matching structures are printed. If multiple filters of the same type are
specified the result is union of all matching tasks.Example usage would be:
---------------------------------------------------------------------------
tasks space Home Folder IT list Infrastructure
---------------------------------------------------------------------------This will output all tasks that are in space _Home_ in folder _IT_ and in the
list _Infrastructure_.---------------------------------------------------------------------------
tasks space Home space Work
---------------------------------------------------------------------------This will output all tasks from both _Home_ and _Work_ spaces.