Files
cli/src/index.ts
Mauricio Siu 0869e2d69a chore: update README and remove .mocharc.json
- Removed the .mocharc.json file as part of the project cleanup.
- Updated README to enhance clarity on usage, authentication options, and command examples.
- Added details on environment variable support and improved command structure for better user guidance.
2026-04-15 18:47:33 -06:00

31 lines
675 B
JavaScript

#!/usr/bin/env node
import chalk from "chalk";
import { program } from "commander";
import { registerAuthCommand } from "./commands/auth.js";
import { registerGeneratedCommands } from "./generated/commands.js";
const pkg = {
name: "dokploy",
version: "0.3.0",
description: "Dokploy CLI - Manage your Dokploy server",
};
program
.name(pkg.name)
.version(pkg.version)
.description(pkg.description)
.action(() => {
program.help();
});
registerAuthCommand(program);
registerGeneratedCommands(program);
const argv = process.argv.filter((arg) => arg !== "--");
program.parseAsync(argv).catch((err) => {
console.error(chalk.red(err.message));
process.exit(1);
});