18
19
The installer downloads and verifies the release bundle in `~/.composio`, then creates the `~/.local/bin/composio` entry point. It does not edit shell files, install agent plugins, or log you in.
20
21
+If the installer reports that `~/.local/bin` is not on your `PATH`, run the command it prints for your shell — see [Configure your shell](#configure-your-shell) — and start a new shell.
22
+
23
Log in after `composio` is available:
24
25
```bash
103
104
The installer supports Linux x64, Linux ARM64, macOS Intel, and macOS Apple Silicon. On Windows, install and run it inside [WSL](https://learn.microsoft.com/windows/wsl/install).
105
106
+### Update
107
+
108
+```bash
109
+composio upgrade
110
+```
111
+
112
+This replaces the bundle in `~/.composio` in place and leaves the `~/.local/bin/composio` entry point pointing at it. Pass a version to pin a specific release (`composio upgrade 0.3.1`), or `--beta` for the latest prerelease.
113
+
114
### Install manually from GitHub Releases
115
116
Download the archive for your platform from [GitHub Releases](https://github.com/ComposioHQ/composio/releases), then install the complete bundle. Keep the support files beside the executable.
133
134
### Uninstall
135
126
-Remove only installer-owned entry points and release artifacts. This keeps your credentials, configuration, and cache data in `~/.composio`.
136
+Remove only installer-owned entry points and release artifacts. This keeps your credentials, configuration, and cache data in `~/.composio`. The file list below matches the current release layout; if you installed a different version, compare it against the contents of that release's archive.
137
138
```bash
139
install_dir=${COMPOSIO_INSTALL_DIR:-"$HOME/.composio"}
160
"$HOME/.bash_login" \
161
"$HOME/.config/fish/config.fish"; do
162
[ -f "$file" ] || continue
153
- sed '/^# Composio CLI$/ { N; d; }' "$file" > "$file.tmp"
154
- mv "$file.tmp" "$file"
163
+ awk '
164
+ /^# Composio CLI$/ { skip = 1; next }
165
+ skip && (/^export PATH=/ || /^export COMPOSIO_INSTALL_DIR=/ || /^set --export /) { next }
166
+ { skip = 0; print }
167
+ ' "$file" > "$file.tmp"
168
+ cat "$file.tmp" > "$file" && rm -f "$file.tmp"
169
done
170
```
171