From 3720ddd6843c4bdaa8b7f3b952befc744bedb81e Mon Sep 17 00:00:00 2001 From: John Akindipe Date: Wed, 27 May 2026 13:12:40 +0100 Subject: [PATCH 1/3] docs: add pullbasectl users delete command --- guides/pullbasectl.mdx | 8 +++++++- reference/cli.mdx | 21 ++++++++++++++++++--- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/guides/pullbasectl.mdx b/guides/pullbasectl.mdx index b9c3b8d..e2a3135 100644 --- a/guides/pullbasectl.mdx +++ b/guides/pullbasectl.mdx @@ -147,7 +147,7 @@ docker compose exec central-server pullbasectl servers install-script \ -### Create/List Users +### Create/List/Delete Users Manage access for your team. @@ -162,6 +162,12 @@ docker compose exec central-server pullbasectl users create \ --new-username "auditor" \ --new-password "AuditPass123!" \ --role viewer + +# Delete a user's account +docker compose exec central-server pullbasectl users delete \ + --server-url http://localhost:8080 \ + --user-id 7 \ + --delete-acct-username "SomeAccount123" ``` ### Validate Config Locally diff --git a/reference/cli.mdx b/reference/cli.mdx index 73f7664..baabc47 100644 --- a/reference/cli.mdx +++ b/reference/cli.mdx @@ -729,9 +729,24 @@ pullbasectl users list \ --limit 50 ``` - -User deletion currently requires the web UI or the REST API (`DELETE /api/v1/users/{userID}`). CLI support is planned. - +### `pullbasectl users delete` + +Delete a user account. + + +ID of the user to delete. + + +Username of the account to delete (used as confirmation). + + +```bash +pullbasectl users delete \ + --server-url http://localhost:8080 \ + --admin-token $ADMIN_JWT \ + --user-id 7 \ + --delete-acct-username "SomeAccount123" +``` ## Bootstrap wizard (interactive) From aea34e36623b220b0a704346a7cb43d4741b9d7c Mon Sep 17 00:00:00 2001 From: John Akindipe Date: Wed, 27 May 2026 14:35:52 +0100 Subject: [PATCH 2/3] improve user deletion note --- guides/pullbasectl.mdx | 4 ++++ reference/cli.mdx | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/guides/pullbasectl.mdx b/guides/pullbasectl.mdx index e2a3135..74dc997 100644 --- a/guides/pullbasectl.mdx +++ b/guides/pullbasectl.mdx @@ -170,6 +170,10 @@ docker compose exec central-server pullbasectl users delete \ --delete-acct-username "SomeAccount123" ``` + +User deletion is blocked if you attempt to delete the last active admin or your own account. + + ### Validate Config Locally Validate your `config.yaml` before pushing to Git to prevent errors. diff --git a/reference/cli.mdx b/reference/cli.mdx index baabc47..0246ff6 100644 --- a/reference/cli.mdx +++ b/reference/cli.mdx @@ -721,6 +721,11 @@ Maximum users to return (1-500). Pagination offset. + + +Deletion is blocked if you attempt to delete the last active admin or your own account. The `--delete-acct-username` flag serves as confirmation and must match the username associated with the user ID. + + ```bash pullbasectl users list \ --server-url http://localhost:8080 \ From 5fc51a8a3b72e7fe5cc0814f53552d121c89527e Mon Sep 17 00:00:00 2001 From: John Akindipe Date: Wed, 27 May 2026 14:49:45 +0100 Subject: [PATCH 3/3] edit user deletion note --- reference/cli.mdx | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/reference/cli.mdx b/reference/cli.mdx index 0246ff6..ca30358 100644 --- a/reference/cli.mdx +++ b/reference/cli.mdx @@ -721,11 +721,6 @@ Maximum users to return (1-500). Pagination offset. - - -Deletion is blocked if you attempt to delete the last active admin or your own account. The `--delete-acct-username` flag serves as confirmation and must match the username associated with the user ID. - - ```bash pullbasectl users list \ --server-url http://localhost:8080 \ @@ -745,6 +740,10 @@ ID of the user to delete. Username of the account to delete (used as confirmation). + +Deletion is blocked if you attempt to delete the last active admin or your own account. The `--delete-acct-username` flag serves as confirmation and must match the username associated with the user ID. + + ```bash pullbasectl users delete \ --server-url http://localhost:8080 \