mirror of
https://github.com/fosrl/pangolin.git
synced 2026-01-28 22:00:51 +00:00
22 lines
773 B
JavaScript
22 lines
773 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";
|
|
import { clearExitNodes } from "./commands/clearExitNodes";
|
|
import { rotateServerSecret } from "./commands/rotateServerSecret";
|
|
import { clearLicenseKeys } from "./commands/clearLicenseKeys";
|
|
import { deleteClient } from "./commands/deleteClient";
|
|
|
|
yargs(hideBin(process.argv))
|
|
.scriptName("pangctl")
|
|
.command(setAdminCredentials)
|
|
.command(resetUserSecurityKeys)
|
|
.command(clearExitNodes)
|
|
.command(rotateServerSecret)
|
|
.command(clearLicenseKeys)
|
|
.command(deleteClient)
|
|
.demandCommand()
|
|
.help().argv;
|