This is unofficial Treasure Data insight CLI tool. With this tool, you don't have to call api directory.
You must install deno in advance
deno install --force --name td-insight --allow-read --allow-env --allow-net https://raw.githubusercontent.com/mickeey2525/td-insight/main/command.ts
you can see how to use this comamnd
td-insight --help
To use this smoothly, I recommend to set TD_API_KEY and TD_API_SERVER environment in advance. Or you can specify apikey and endpoint like this
td-insight dm list -e https://api.treasuredata.com -k 12345/abcdefg