Skip to content

Make org credits easier to use when a default org ID is configured #55

Description

@r0ny123

Summary

When a default organization ID is configured, censys credits still returns the free user credit balance. This is surprising because most other organization-aware commands can use the configured org ID automatically, while credits requires users to remember a separate command:

censys org credits

It would be helpful if the CLI had an official way to make the organization credit balance the default, or at least made this behavior more discoverable.

Current behavior

After configuring authentication and a default organization ID:

censys config auth add
censys config org-id add

Running:

censys credits

returns the free user balance, while:

censys org credits

returns the organization balance.

The command help does explain this distinction, but it is easy to miss in day-to-day terminal use, especially after setting a default org ID.

Expected / requested behavior

Please consider one of the following:

  1. If an active org ID is configured, make censys credits show organization credits by default.
  2. Add a config option such as credits.default_scope = org so users can choose this behavior.
  3. Add an official alias or shortcut for org credits.
  4. Make censys credits output a stronger hint when an active org ID is configured, for example: "This is the free user balance. Run censys org credits for your configured organization balance."

Why this helps

Users with organization access often care about org credits more than free user credits. Without an official behavior or alias, users may create shell wrappers locally, but that is brittle and not portable across machines or shells.

Environment

  • CLI version: 1.0.15
  • OS/arch: macOS arm64

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions