Skip to content

Commit 90703aa

Browse files
authored
docs: add CLI deploy command for Agent Engine instructions (#628)
1 parent da6d18f commit 90703aa

File tree

1 file changed

+29
-14
lines changed

1 file changed

+29
-14
lines changed

docs/deploy/agent-engine.md

Lines changed: 29 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -137,20 +137,35 @@ Expected output for `stream_query` (local):
137137

138138
### Deploy your agent to Agent Engine
139139

140-
```python
141-
from vertexai import agent_engines
142-
143-
remote_app = agent_engines.create(
144-
agent_engine=app,
145-
requirements=[
146-
"google-cloud-aiplatform[adk,agent_engines]"
147-
]
148-
)
149-
```
150-
151-
This step may take several minutes to finish.
152-
153-
You can check and monitor the deployment of your ADK agent on the [Agent Engine UI](https://console.cloud.google.com/vertex-ai/agents/agent-engines) on Google Cloud.
140+
You can deploy your agent to Agent Engine using the following methods:
141+
142+
=== "CLI"
143+
144+
```
145+
adk deploy agent_engine –project=[project] –region=[region] \
146+
–staging_bucket=[staging_bucket] –display_name=[app_name] \
147+
path/to/my_agent
148+
```
149+
150+
=== "Python"
151+
152+
```python
153+
from vertexai import agent_engines
154+
155+
remote_app = agent_engines.create(
156+
agent_engine=app,
157+
requirements=[
158+
"google-cloud-aiplatform[adk,agent_engines]"
159+
]
160+
)
161+
```
162+
163+
This step may take several minutes to finish. You can check and monitor the
164+
deployment of your ADK agent on the
165+
[Agent Engine UI](https://console.cloud.google.com/vertex-ai/agents/agent-engines)
166+
on Google Cloud. For more information about the command line interface
167+
parameters for `adk deploy`, see the
168+
[ADK CLI reference](https://google.github.io/adk-docs/api-reference/cli/cli.html#adk-deploy).
154169

155170
Each deployed agent has a unique identifier. You can run the following command to get the resource_name identifier for your deployed agent:
156171

0 commit comments

Comments
 (0)