Script / CLI
CLI Class Documentation
Methods
command
public command(name: string, description?: string): Commandscript.command("greet", "Greets the user")
.action(() => console.log("Hello, welcome to roboqo-cli!"));setPrompt
setWelcomeMessage
getSettings
exec
generateHelp
Command Class Documentation
Methods
option
action
execute
How to Build Commands
1️⃣ Creating a Simple Command
2️⃣ Adding Options (Flags)
3️⃣ Handling Missing Required Arguments
4️⃣ Displaying Help for a Command
5️⃣ Setting Custom Prompt and Welcome Message
Last updated