dxfl/index.ts

27 lines
696 B
JavaScript

#!/usr/bin/env node
import { program } from "commander";
import { login } from "./auth.js";
import { deploy } from "./deploy.js";
import { vhostsList } from "./vhosts.js";
program
.name('dxfl')
.description('Deuxfleurs CLI tool')
.version('0.1.0');
program.command('login')
.description('Link your Deuxfleurs account with this tool.')
.argument('<username>', 'your account username')
.action(login);
program.command('list')
.description('List all your websites')
.action(vhostsList);
program.command('deploy')
.description('Deploy your website')
.argument('<vhost>', 'selected vhost')
.argument('<local_folder>', 'your local folder')
.action(deploy)
program.parse();