Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
fix(install): show CLI output on success and always display post-install guidance
- Replace 2>/dev/null with a temp file capture so the CLI's TerminalUI output (written to stderr) is shown when the command succeeds, but suppressed on failure to avoid noise. - Move the "To get started" guidance block outside the if/else so it always displays regardless of which code path ran.
jkomyno committed
Mar 9, 2026 at 09:29 UTC
067c67b69552e8f385186422f6ed45bcbd5cf610
1 file changed
+13
-10
install.sh
+13
-10
@@ -170,8 +170,9 @@ success "Composio CLI was installed successfully to $Bold_Green$(tildify "$exe")
170
171
echo
172
173
-if COMPOSIO_INSTALL_DIR="$COMPOSIO_INSTALL_DIR" "$exe" install 2>/dev/null; then
174
- : # CLI handled everything
173
+install_err=$(mktemp)
174
+if COMPOSIO_INSTALL_DIR="$COMPOSIO_INSTALL_DIR" "$exe" install 2>"$install_err"; then
175
+ cat "$install_err" >&2 # Show CLI's TerminalUI output on success
176
else
177
info "Setting up shell integration..."
178
@@ -261,14 +262,16 @@ else
262
;;
263
esac
264
264
- echo
265
- info "To get started, run:"
266
- echo
265
+fi
266
+rm -f "$install_err"
267
268
- if [[ $refresh_command ]]; then
269
- info_bold " $refresh_command"
270
- fi
268
+echo
269
+info "To get started, run:"
270
+echo
271
272
- info_bold " composio --help"
273
- info_bold " composio login"
272
+if [[ ${refresh_command:-} ]]; then
273
+ info_bold " $refresh_command"
274
fi
275
+
276
+info_bold " composio --help"
277
+info_bold " composio login"