CLI commands and flags

claude setup-token

Outputs an unsaved, persistent OAuth token directly to the terminal for automation use.

Syntax

claude setup-token

Type to search the reference, templates and lessons.