@dandori/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.25 • Public • Published

dandori/cli

This repository is responsible for executing @dandori/* packages.

Usage

This is an example of using Miro.

First, please create .env file and set environment variables like below.

OPENAI_API_KEY=your_openai_api_key
MIRO_API_KEY=your_miro_api_key

Second, please create a file which contains your tasks like below.

Today's My Tasks
* Send Email to John
* Send Email to Mary
* Report to Boss after sending emails

Finally, please execute the following command.

npx --package=@dandori/cli -- dandori-miro your_tasks.txt -b your_miro_board_id
yarn dlx -p @dandori/cli dandori-miro your_tasks.txt -b your_miro_board_id
pnpm --package=@dandori/cli dlx dandori-miro your_tasks.txt -b your_miro_board_id

Requirements

Supported External APIs

Commands

dandori-core

This command is to execute generateDandoriTasks of @dandori/core.

% pnpm --package=@dandori/cli dlx dandori-core -h
Options:
  -V, --version                                    output the version number
  -e, --env-file <env-file>                        env file path
  -m, --model <model>                              Chat GPT model which supports function_calling
  -o, --optional-task-props <optional-task-props>  optional output task props which delimiter is a comma
  -h, --help                                       display help for command

Example of the command

pnpm --package=@dandori/cli dlx dandori-core your_tasks.txt > result.json

dandori-miro

This command is to execute generateDandoriMiroCards of @dandori/ui.

% pnpm --package=@dandori/cli dlx dandori-miro -h

Usage: @dandori/cli <input-file> [options]

Options:
  -V, --version                                    output the version number
  -e, --env-file <env-file>                        env file path
  -m, --model <model>                              Chat GPT model which supports function_calling
  -o, --optional-task-props <optional-task-props>  optional output task props which delimiter is a comma
  -a, --app-card                                   use app card
  -b, --board-id <board-id>                        miro board id. if not set, create new board
  -h, --help                                       display help for command

Example of the command

pnpm --package=@dandori/cli dlx dandori-miro your_tasks.txt -b your_miro_board_id

dandori-notion

This command is to execute generateDandoriNotionPages of @dandori/ui.

% pnpm --package=@dandori/cli dlx dandori-notion -h                                      

Usage: @dandori/cli <input-file> [options]

Options:
  -V, --version                                    output the version number
  -e, --env-file <env-file>                        env file path
  -m, --model <model>                              Chat GPT model which supports function_calling
  -o, --optional-task-props <optional-task-props>  optional output task props which delimiter is a comma
  -d, --database-id <database-id>                  notion database id
  --name <name>                                    notion page name property
  --deadline <deadline>                            notion page deadline property
  --status <status>                                notion page status property
  --status-todo <status-todo>                      notion page status todo property
  --status-doing <status-doing>                    notion page status doing property
  --status-done <status-done>                      notion page status done property
  -h, --help                                       display help for command

Example of the command

pnpm --package=@dandori/cli dlx dandori-miro your_tasks.txt -d your_database_id -o status --status 'Status' --status-todo 'ToDo' --status-doing 'Doing' --status-done 'Done 🙌'

dandori-trello

This command is to execute generateDandoriTrelloCards of @dandori/ui.

% pnpm --package=@dandori/cli dlx dandori-trello -h                                      

Usage: @dandori/cli <input-file> [options]

Options:
  -V, --version                                    output the version number
  -e, --env-file <env-file>                        env file path
  -m, --model <model>                              Chat GPT model which supports function_calling
  -o, --optional-task-props <optional-task-props>  optional output task props which delimiter is a comma
  -b, --board-id <board-id>                        trello board id
  --status-todo <status-todo>                      trello list status todo name
  --status-doing <status-doing>                    trello list status doing name
  --status-done <status-done>                      trello list status done name
  -h, --help                                       display help for command

Example of the command

pnpm --package=@dandori/cli dlx dandori-trello your_tasks.txt -d your_board_id -o status --status-todo 'Todo' --status-doing 'Doing' --status-done 'Done'

Readme

Keywords

none

Package Sidebar

Install

npm i @dandori/cli

Weekly Downloads

3

Version

0.0.25

License

MIT

Unpacked Size

94.4 kB

Total Files

35

Last publish

Collaborators

  • hiroki0525