mirror of
https://github.com/fosrl/pangolin.git
synced 2025-08-20 01:08:41 +02:00
pangctl reset-user-security-keys --email user@example.com This command will: 1. Find the user by email address 2. Check if they have any registered security keys 3. Delete all their security keys from the database 4. Provide feedback on the operation
13 lines
405 B
JavaScript
13 lines
405 B
JavaScript
#!/usr/bin/env node
|
|
|
|
import yargs from "yargs";
|
|
import { hideBin } from "yargs/helpers";
|
|
import { setAdminCredentials } from "@cli/commands/setAdminCredentials";
|
|
import { resetUserSecurityKeys } from "@cli/commands/resetUserSecurityKeys";
|
|
|
|
yargs(hideBin(process.argv))
|
|
.scriptName("pangctl")
|
|
.command(setAdminCredentials)
|
|
.command(resetUserSecurityKeys)
|
|
.demandCommand()
|
|
.help().argv;
|