From cd50a81880012c7ed9c895f5d3f501cdfb94b862 Mon Sep 17 00:00:00 2001 From: John Pruitt Date: Fri, 17 Jul 2026 13:55:02 -0500 Subject: [PATCH] feat(cli): add API key TTL flag --- docs/cli/me-apikey.md | 4 ++- e2e/cli.e2e.test.ts | 36 +++++++++++++++++++++- packages/cli/commands/apikey.ts | 54 ++++++++++++++++++++++++++++----- 3 files changed, 84 insertions(+), 10 deletions(-) diff --git a/docs/cli/me-apikey.md b/docs/cli/me-apikey.md index 52930a2e..a636ec47 100644 --- a/docs/cli/me-apikey.md +++ b/docs/cli/me-apikey.md @@ -26,7 +26,7 @@ Minting and revoking keys authenticate with your **session** (`me login`); an AP Mint a new API key. With no target option, mints a **personal access token** for yourself; with `--agent`, mints a key for that agent; with `--service`, mints a key for that service account in the active space. The raw key is shown only once — store it securely. ``` -me apikey create [name] [--agent | --service ] [--expires ] +me apikey create [name] [--agent | --service ] [--expires | --ttl ] ``` | Argument | Required | Description | @@ -38,6 +38,7 @@ me apikey create [name] [--agent | --service ] [--expires