1 import {
2 CodeTab,
3 CodeTabs,
4 } from "docs-ui"
5
6 export const metadata = {
7 title: `Agentic Deployment with Cloud CLI`,
8 }
9
10 # {metadata.title}
11
12 In this guide, you'll learn how the [Cloud CLI](!cloud!/cli) supports deployment and debugging through AI agents.
13
14 ## What is the Cloud CLI?
15
16 The Cloud CLI is a command-line interface tool that allows you to manage resources in your applications deployed on [Cloud](!cloud!). You can view logs, manage deployments, and perform various operations to ensure your application runs smoothly.
17
18 ---
19
20 ## Using the Cloud CLI with AI Agents
21
22 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.
23
24 The Cloud CLI optimizes your agentic development workflow by:
25
26 - Providing a scriptable interface to manage your Cloud resources.
27 - Allowing AI agents to interact with your Cloud environment for tasks like fetching logs, managing deployments, and more.
28 - Enabling automation of routine tasks in CI/CD pipelines.
29 - Integrating with AI agents to enhance debugging and deployment processes.
30
31 ---
32
33 ## Get Started with the Cloud CLI
34
35 To get started with the Cloud CLI with AI agents, copy the following prompt to your agent to get started:
36
37 ```markdown title="Prompt"
38 Fetch https://docs.medusajs.com/cloud/cli/agents and set up the Medusa Cloud CLI.
39 ```
40
41 You can also install the instructions in that document as a skill in your agent:
42
43 <CodeTabs group="agent-skills">
44 <CodeTab label="Claude Code" value="claude-code">
45
46 ```bash
47 claude # start claude code
48 /plugin marketplace add medusajs/medusa-agent-skills
49 /plugin install medusa-cloud@medusa
50 ```
51
52 </CodeTab>
53 <CodeTab label="Other AI Agents" value="skills-command">
54
55 ```bash
56 npx skills add medusajs/medusa-agent-skills
57 # choose the following skill:
58 # - using-medusa-cloud
59 ```
60
61 </CodeTab>
62 </CodeTabs>
63
64 See the [Agentic Deployment with Cloud CLI](!cloud!/cli/agents) guide for more details.