In the world of software development, a powerful script is a thing of beauty. It starts as a simple utility, a quick fix to automate a repetitive task. But as its usefulness grows, so does its complexity. Soon, you need to add arguments, options, help text, and a way to distribute it to your team. What began as a simple script has ballooned into a full-blown maintenance project.
This is the traditional lifecycle of internal tools. We spend countless hours building powerful, intelligent business logic—agentic workflows that can deploy applications, analyze data, or manage infrastructure—only to see their accessibility hampered by the friction of creating a user-friendly interface.
What if we could skip the boilerplate and transform our complex logic directly into a robust, scalable, and shareable command-line interface (CLI)? What if we could build CLIs the agentic way?
Building a traditional CLI is a journey through a gauntlet of tedious tasks:
This entire process distracts from the real goal: delivering the value of your underlying code.
cli.do reimagines this entire process from the ground up. We believe your business logic is the star of the show. Creating a CLI should be as simple as exposing a function. It's a paradigm shift from building tools to defining services—treating your CLI as an API.
Instead of wrestling with boilerplate, you define your command as an Agent. You specify the command name, its arguments, and the function to execute. That's it.
Here’s how you can turn a complex deployment workflow into a simple, powerful command-line tool with just a few lines of code:
import { Agent } from '@do-sdk/agent';
// Define your CLI command as an Agent
const cli = new Agent('cli.do');
// Create a 'deploy' command with project and environment arguments
cli.on('deploy', {
project: { type: 'string', required: true },
env: { type: 'string', default: 'staging' },
}, async (args) => {
console.log(`Deploying ${args.project} to ${args.env}...`);
// Your complex deployment logic here
// await triggerDeployment(args.project, args.env);
return { status: 'success', message: `Deployment of ${args.project} to ${args.env} initiated.` };
});
// Your CLI is now live and callable by authorized users:
// > do cli deploy --project my-app --env production
With cli.do, the platform instantly handles:
You focus purely on the functionality, and we provide the interface.
"Agentic Workflows" are more than just scripts. They are intelligent, autonomous pieces of code designed to execute complex, multi-step tasks. Think of them as digital agents that carry out your business logic.
Examples include:
These powerful workflows deserve a first-class interface. cli.do provides an elegant and powerful command-line entry point, turning your sophisticated business as code into an accessible and interactive developer tool.
cli.do is an Agentic Workflow Platform service that allows you to effortlessly create and manage command-line interfaces (CLIs) as APIs. It enables you to expose your business logic and automated workflows as simple, distributable tools.
Unlike traditional libraries that require manual setup, argument parsing, and deployment, cli.do abstracts the entire process. You define your command's logic as code, and we automatically generate, host, and scale the CLI, making it instantly available.
You have full control. CLIs can be kept private for internal team use, shared with specific users, or made public. Access is managed through the .do platform's robust authentication and authorization system.
Anything you can code! From running data analysis scripts and triggering cloud deployments to managing customer support tasks or generating reports. If you can define it as an agentic workflow, you can expose it as a powerful CLI.
It's time to elevate our thinking. Your code is more than a script; it's a service waiting to be unleashed. By treating your CLIs as APIs, you create a more robust, secure, and scalable ecosystem for your entire organization.
Stop losing time to boilerplate and distribution headaches. Let cli.do handle the interface so you can focus on building the intelligent workflows that drive your business forward.
Ready to transform your business logic into powerful, shareable command-line tools? Get started with cli.do today and build the agentic way.