diff options
Diffstat (limited to 'apps/cli/src/commands/whoami.ts')
| -rw-r--r-- | apps/cli/src/commands/whoami.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/cli/src/commands/whoami.ts b/apps/cli/src/commands/whoami.ts new file mode 100644 index 00000000..b55bfa67 --- /dev/null +++ b/apps/cli/src/commands/whoami.ts @@ -0,0 +1,10 @@ +import { getAPIClient } from "@/lib/trpc"; +import { Command } from "@commander-js/extra-typings"; + +export const whoamiCmd = new Command() + .name("whoami") + .description("returns info about the owner of this API key") + .action(async () => { + const resp = await getAPIClient().users.whoami.query(); + console.log(resp); + }); |
