Files
João MouraandClaude Opus 5.5 7483a67604 fix(cli): exit 1 when a crewai+ command needs a login (#8590)
* fix(cli): exit 1 when a crewai+ command needs a login

Logged out, `crewai org list|current|switch` and every other Plus API
command (deploy, tool, skill, triggers) printed "Please sign up/login"
and exited 0, because AuthenticationRequiredError was raised without a
code. It now carries code 1. The org commands also exit 1 on a 401, on
an unknown org id, and for `org current` with no org selected. Messages
are unchanged.

The shipped AGENTS.md template and devtools eval item A-038 described
the old exit-0 behaviour and now describe exit 1.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* test(cli): pin the logged-out exit code for create tool and skill

crewai create tool|skill and the legacy crewai tool create build a
PlusAPIMixin command before scaffolding, so they now exit 1 when logged
out too. Pin that, in an isolated filesystem.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 01:13:46 -03:00
..