Steps 1. Identify the org: the user provides a username or alias ( ). If not provided, run to show authenticated orgs and ask the user which one to use. 2. Set the default org: - Local (default): - Applies only within the current project directory. Use this for normal project work. - Global (only if user explicitly requests): - Applies system-wide across all directories. Use when working outside a project or when the user asks for global scope. - If this fails, report the error and suggest running if the org may not be authorized. 3. Verify: - - Note: the JSON output does not include a scope/…