Skip to content

[FEAT cloudctl] - Add set and env commands for persistent session config #77

Open

Description

@onuryilmaz

User Story

As a cloudctl user, I want to set a default context, namespace, and kubeconfig path once and have all subsequent commands use them, so I don't repeat flags on every invocation.

Description

cloudctl set --context <ctx> --namespace <ns> --kubeconfig <path> persists config to the XDG config dir. cloudctl env prints evaluable shell output (CLOUDCTL_CONTEXT=, CLOUDCTL_KUBECONFIG=, CLOUDCTL_NAMESPACE=) for use in scripts and eval. Flags on individual commands override persisted config.

Acceptance Criteria

  • set accepts --context, --namespace, --kubeconfig flags and persists to XDG config
  • All cloudctl commands read persisted config as defaults
  • env prints evaluable shell output for all three values
  • Per-command flags override persisted config

Reference Issues

Epic: #70

Activity

  1. added
    featureNew functional capabilities or significant additions to the CLI.
    kubeconfigSpecifically related to kubeconfig parsing, merging, or management
    on Aug 31, 2026
  2. github-actions commented on Aug 31, 2026

    @github-actions

    Thanks for opening this issue! 🎉

    A maintainer will triage it within 5 business days. You can learn more about our issue workflow in the Issue Lifecycle documentation.

    In the meantime, please make sure you have provided:

    • A clear problem statement
    • Steps to reproduce (for bugs)
    • Expected vs actual behavior

    This helps us route your issue faster.

  3. added
    needs-refinementNeeds scoping before implementation
    and removed
    needs-triageNew issue, not yet reviewed
    on Aug 31, 2026
  4. added
    backlogReady for sprint planning; triggers project addition
    and removed
    needs-refinementNeeds scoping before implementation
    on Sep 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogReady for sprint planning; triggers project additionfeatureNew functional capabilities or significant additions to the CLI.good first issueGood for newcomerskubeconfigSpecifically related to kubeconfig parsing, merging, or management

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions