You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/tutorials/generate-new-code-using-ai.mdx
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,19 +1,21 @@
1
1
---
2
-
title: Deploy an outline using AI
2
+
title: Generate Project Outlines With AI
3
3
sidebar_position: 50
4
4
---
5
5
6
-
# Deploy an Outline of a Project Using AI
6
+
# Generate Project Outlines With AI
7
7
8
-
Defang supports generating new project outlines using integration with an AI model. Using this feature, you can describe what you would like the service to do and the CLI will then generate a project outline with all the files required to make it work.
8
+
Defang supports generating an outline of a project using an AI agent.
9
+
With this feature, you can describe what you would like the service to do and the [CLI](/docs/getting-started#install-the-defang-cli) will then [generate](/docs/concepts/generate) a project outline with all the files required to make it deployable with Defang.
9
10
<iframewidth="560"height="315"src="https://www.youtube.com/embed/afglsBYieuc?si=GCvHhBu3H9ktMDHA"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
10
11
12
+
Let's take a look below on how to use Defang's AI agent to [generate](/docs/concepts/generate) an outline, and then deploy that project to the cloud using Defang.
11
13
12
-
In this tutorial we'll use the following prompt:
14
+
In this tutorial we'll use the following prompt to describe the service:
13
15
14
-
A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response.
16
+
"A basic service with 2 REST endpoints. The default endpoint will be for health check and should return a JSON object like this: `{ "status": "OK" }`. The /echo endpoint will echo back all request parameters in the response."
15
17
16
-
## Step 1 - Use the CLI generate command
18
+
## Step 1 - Use the `defang generate` command in the CLI
17
19
```text
18
20
defang generate
19
21
@@ -32,7 +34,7 @@ A basic service with 2 REST endpoints. The default endpoint will be for health c
32
34
project1
33
35
```
34
36
35
-
This will generate the different files required to start your project based on your prompt and the language selected.
37
+
This will [generate](/docs/concepts/generate) the different files required to start your project based on your prompt and the language selected.
0 commit comments