Back to Medusa

{metadata.title}

www/apps/book/app/learn/introduction/build-with-llms-ai/cloud-cli/page.mdx

2.15.22.1 KB
Original Source

import { CodeTab, CodeTabs, } from "docs-ui"

export const metadata = { title: Agentic Deployment with Cloud CLI, }

{metadata.title}

In this guide, you'll learn how the Cloud CLI supports deployment and debugging through AI agents.

What is the Cloud CLI?

The Cloud CLI is a command-line interface tool that allows you to manage resources in your applications deployed on Cloud. You can view logs, manage deployments, and perform various operations to ensure your application runs smoothly.


Using the Cloud CLI with AI Agents

The Cloud CLI is designed to optimize your agentic development. By combining the Cloud CLI with AI agents, you can automate deployment processes and debug issues more efficiently. AI agents can analyze logs, identify potential issues, and even suggest fixes, making it easier for you to maintain your application.

The Cloud CLI optimizes your agentic development workflow by:

  • Providing a scriptable interface to manage your Cloud resources.
  • Allowing AI agents to interact with your Cloud environment for tasks like fetching logs, managing deployments, and more.
  • Enabling automation of routine tasks in CI/CD pipelines.
  • Integrating with AI agents to enhance debugging and deployment processes.

Get Started with the Cloud CLI

To get started with the Cloud CLI with AI agents, copy the following prompt to your agent to get started:

markdown
Fetch https://docs.medusajs.com/cloud/cli/agents and set up the Medusa Cloud CLI.

You can also install the instructions in that document as a skill in your agent:

<CodeTabs group="agent-skills"> <CodeTab label="Claude Code" value="claude-code">
bash
claude # start claude code
/plugin marketplace add medusajs/medusa-agent-skills
/plugin install medusa-cloud@medusa
</CodeTab> <CodeTab label="Other AI Agents" value="skills-command">
bash
npx skills add medusajs/medusa-agent-skills
# choose the following skill:
# - using-medusa-cloud
</CodeTab> </CodeTabs>

See the Agentic Deployment with Cloud CLI guide for more details.