Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 11 additions & 5 deletions packages/cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { Command } from 'commander';
import kleur from 'kleur';

export const deployCmd = new Command('deploy')
.description('Provision cloud infrastructure — VPS, GPU, bare metal, managed databases, object storage')
.action(() => {
deployCmd.help();
});
export function createDeployCmd() {
const deployCmd = new Command('deploy')
.description('Provision cloud infrastructure — VPS, GPU, bare metal, managed databases, object storage')
.action(() => {
deployCmd.help();
});

deployCmd
.command('setup')
Expand Down Expand Up @@ -82,3 +83,8 @@ deployCmd
.action((id: string, opts: { provider: string }) => {
console.log(kleur.dim(`[stub] deploy status ${id} on ${opts.provider}`));
});

return deployCmd;
}

export const deployCmd = createDeployCmd();
2 changes: 2 additions & 0 deletions packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import { updateCmd, removeCmd } from './commands/self.js';
import { makeCategoryCmd } from './commands/adapter-cmd.js';
import { CATEGORIES } from './adapter-registry.js';
import { skillsCmd } from './commands/skills.js';
import { createDeployCmd } from './commands/deploy.js';

const program = new Command();

Expand Down Expand Up @@ -40,6 +41,7 @@ program.addCommand(logoutCmd);
program.addCommand(secretsCmd);
program.addCommand(configCmd);
program.addCommand(skillsCmd); // skills · package/promote SKILL.md agent skills across marketplaces
program.addCommand(createDeployCmd()); // deploy · documented top-level alias for scale deploy

// Self-management — sh1pt update / upgrade / remove / uninstall.
program.addCommand(updateCmd);
Expand Down