Skip to content

CLI Command Without Authentication #391

@najuna-brian

Description

@najuna-brian

Description

Verifies that all CLI commands that require authentication fail gracefully with a clear, actionable error message when no valid login session exists, rather than crashing or producing a confusing technical error.

Steps

  1. Delete or rename the CLI config file so no stored credentials exist (e.g. mv ~/.synkronus.yaml ~/.synkronus.yaml.bak)
  2. Run synk app-bundle upload bundle.zip
  3. Read the error message
  4. Run synk data export exports.zip
  5. Read the error message
  6. Run synk app-bundle versions
  7. Read the error message

Expected Result

Every command that requires authentication returns a clear, non-technical error message telling the operator what to do next - for example: "You are not logged in. Run synk login to authenticate." No command panics, crashes with a Go stack trace, or produces an obscure network error. Exit code is non-zero for all unauthenticated attempts.

Actual Result

(To be filled during testing)

Priority

High

Metadata

Metadata

Assignees

No one assigned

    Labels

    testIssues related to tests, test coverage, or test infrastructuretest:CLITest case related to the CLI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions