In the rapidly evolving world of AI, speed and reliability are paramount. As development teams build sophisticated agentic workflows to automate complex business processes, they face a critical challenge: how to deploy and manage these services efficiently and consistently. Manual deployments are slow, error-prone, and simply don't scale. The solution? Treating your AI services like any other critical piece of software—by embracing automation and the principles of "Business as Code."
This is where cli.do, our powerful command-line interface, transforms your development lifecycle. It bridges the gap between building intelligent agents and deploying them robustly, allowing you to integrate the full power of agentic workflows directly into your CI/CD pipeline.
In modern software development, Continuous Integration and Continuous Deployment (CI/CD) are standard practice. They enable teams to ship features faster and with greater confidence. Your AI-powered services deserve the same rigorous, automated treatment.
Integrating a CLI into your CI/CD pipeline offers several key advantages:
The .do CLI is a first-class developer tool designed for automation. It brings the full power of the .do platform to the comfort of your terminal, turning complex orchestrations into simple, scriptable commands.
Instead of navigating a UI, you can build, test, and deploy your "Services-as-Software" with intuitive commands.
// Example: Deploying a new agentic workflow from your terminal
// Step 1: Login to your .do account
$ do login
// Step 2: Navigate to your workflow directory and deploy
$ cd /path/to/my-agent-workflow
$ do workflow deploy . --name="customer-onboarding-v2"
// Output:
// ✓ Authenticating...
// ✓ Packaging workflow files...
// ✓ Uploading package (1.2MB)...
// ✓ Deploying agent 'customer-onboarding-v2'...
// ✓ Deployment successful!
//
// API Endpoint: https://api.do/workflows/customer-onboarding-v2
// Status: Active
Because cli.do is built for scripting, it's the perfect fit for any CI/CD platform, including GitHub Actions, GitLab CI, or Jenkins.
Let's walk through how to set up a complete CI/CD pipeline using GitHub Actions to automatically deploy your agentic workflow whenever you merge changes to your main branch.
Your CI/CD pipeline needs to authenticate with the .do platform securely. We'll use a .do API token and store it as a repository secret in GitHub.
In your repository, create a new file at .github/workflows/deploy.yml. This file will define the automation steps.
# .github/workflows/deploy.yml
name: Deploy Agentic Workflow
# Trigger the workflow on pushes to the main branch
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# 1. Check out the repository code
- name: Checkout code
uses: actions/checkout@v4
# 2. Set up Node.js (required to install the CLI via npm)
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
# 3. Install the .do CLI
- name: Install .do CLI
run: npm install -g @do/cli
# 4. Authenticate using the stored secret
- name: Login to .do
run: do login --token ${{ secrets.DO_API_TOKEN }}
# 5. Deploy the agentic workflow
- name: Deploy Workflow
run: do workflow deploy . --name "production-workflow"
The cli.do tool isn't just for deployment. It provides a comprehensive set of commands to manage the entire lifecycle of your agentic workflows, all from a scriptable interface. You can extend your CI/CD pipeline to:
By integrating these capabilities, you can build a truly robust, end-to-end automation pipeline for your most critical business logic.
Ready to stop deploying manually and start shipping with confidence? Install the .do CLI and bring the power of CI/CD to your agentic workflows today.