|
1 | 1 | # Installation |
2 | 2 |
|
3 | | -There are several ways to install the Agent Starter Pack. Choose the method that works best for your workflow. You can also [try it in Firebase Studio](https://studio.firebase.google.com/new?template=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fagent-starter-pack%2Ftree%2Fmain%2Fsrc%2Fresources%2Fid), a cloud-based development environment with zero setup. |
| 3 | +There are several ways to install the Agent Starter Pack. Choose the method that works best for your workflow. |
4 | 4 |
|
5 | | -## Using pipx (Recommended) |
| 5 | +**Want zero setup?** 👉 [Try in Firebase Studio](https://studio.firebase.google.com/new?template=https%3A%2F%2Fgithub.com%2FGoogleCloudPlatform%2Fagent-starter-pack%2Ftree%2Fmain%2Fsrc%2Fresources%2Fidx) or in [Cloud Shell](https://shell.cloud.google.com/cloudshell/editor?cloudshell_git_repo=https%3A%2F%2Fgithub.com%2Feliasecchig%2Fasp-open-in-cloud-shell&cloudshell_print=open-in-cs) |
6 | 6 |
|
7 | | -The recommended way to install the Agent Starter Pack is with [pipx](https://pypa.github.io/pipx/), which installs the package in an isolated environment while making the commands globally available: |
| 7 | +## `uvx` for Quick Project Creation |
8 | 8 |
|
| 9 | +If you have [uv](https://astral.sh/uv) installed, you can create projects without a permanent installation: |
9 | 10 | ```bash |
10 | | -# Install pipx if you don't have it |
11 | | -python3 -m pip install --user pipx && python3 -m pipx ensurepath |
12 | | -source ~/.bashrc # or ~/.zshrc depending on your shell |
13 | | - |
14 | | -# Install the Agent Starter Pack |
15 | | -pipx install agent-starter-pack |
| 11 | +uvx agent-starter-pack create my-awesome-agent |
16 | 12 | ``` |
17 | 13 |
|
18 | | -## Using pip with a virtual environment |
| 14 | +## Virtual Environment Installation |
19 | 15 |
|
20 | | -You can also install the Agent Starter Pack in a virtual environment: |
| 16 | +Installs into an isolated Python environment. |
21 | 17 |
|
22 | 18 | ```bash |
23 | | -# Create and activate a Python virtual environment |
24 | | -python -m venv venv && source venv/bin/activate |
| 19 | +# Create and activate venv |
| 20 | +python -m venv .venv && source .venv/bin/activate # source .venv/Scripts/activate for Windows Git Bash |
25 | 21 |
|
26 | | -# Install the Agent Starter Pack |
| 22 | +# Install using pip or uv |
27 | 23 | pip install agent-starter-pack |
28 | 24 | ``` |
29 | 25 |
|
30 | | -## Using uv (Fast Python package installer) |
| 26 | +## Persistent CLI Installation |
31 | 27 |
|
32 | | -For a faster installation experience, you can use [uv](https://astral.sh/uv): |
| 28 | +Installs the `agent-starter-pack` command globally. |
33 | 29 |
|
| 30 | +### With `pipx` (Isolated Global Tool) |
34 | 31 | ```bash |
35 | | -# Install uv if you don't have it |
36 | | -curl -LsSf https://astral.sh/uv/install.sh | sh |
37 | | - |
38 | | -# For sh, bash, zsh |
39 | | -# For fish: source $HOME/.local/bin/env.fish |
40 | | -source $HOME/.local/bin/env |
| 32 | +# Install pipx (if needed) |
| 33 | +python3 -m pip install --user pipx && python3 -m pipx ensurepath |
41 | 34 |
|
42 | | -# Install the Agent Starter Pack |
43 | | -uv tool install agent-starter-pack |
| 35 | +# Install Agent Starter Pack |
| 36 | +pipx install agent-starter-pack |
44 | 37 | ``` |
45 | 38 |
|
46 | | -## Getting Started |
47 | | - |
48 | | -After installation, you can create a new agent project: |
49 | | - |
| 39 | +### With `uv tool install` (Fast, Isolated Global Tool) |
| 40 | +Requires `uv` (see `uvx` section for install). |
50 | 41 | ```bash |
51 | | -# Create a new agent project |
52 | | -agent-starter-pack create my-awesome-agent |
| 42 | +uv tool install agent-starter-pack |
53 | 43 | ``` |
54 | 44 |
|
| 45 | +## Create Project (After Persistent/Venv Install) |
55 | 46 |
|
56 | | -## Upgrading |
57 | | - |
58 | | -To upgrade, use the same tool you used for installation: |
59 | | - |
| 47 | +If you installed via `pipx`, `uv tool install`, or in a virtual environment: |
60 | 48 | ```bash |
61 | | -pipx upgrade agent-starter-pack # Using pipx |
62 | | -pip install --upgrade agent-starter-pack # Using pip |
63 | | -uv pip install --upgrade agent-starter-pack # Using uv |
| 49 | +agent-starter-pack create my-awesome-agent |
64 | 50 | ``` |
65 | 51 |
|
66 | | -## Uninstalling |
| 52 | +## Managing Installation |
67 | 53 |
|
68 | | -To uninstall, use the same tool you used for installation: |
| 54 | +### Upgrading |
| 55 | +* **`uvx`:** Not needed (always uses latest). |
| 56 | +* **`pipx`:** `pipx upgrade agent-starter-pack` |
| 57 | +* **`uv tool`:** `uv tool install agent-starter-pack` (this upgrades) |
| 58 | +* **`pip`/`uv pip` (in .venv):** `(uv) pip install --upgrade agent-starter-pack` |
69 | 59 |
|
70 | | -```bash |
71 | | -pipx uninstall agent-starter-pack # Using pipx |
72 | | -pip uninstall agent-starter-pack # Using pip |
73 | | -uv tool uninstall agent-starter-pack # Using uv |
74 | | -``` |
| 60 | +### Uninstalling |
| 61 | +* **`uvx`:** Not applicable. |
| 62 | +* **`pipx`:** `pipx uninstall agent-starter-pack` |
| 63 | +* **`uv tool`:** `uv tool uninstall agent-starter-pack` |
| 64 | +* **`pip`/`uv pip` (in .venv):** `(uv) pip uninstall agent-starter-pack` |
0 commit comments