cozyctl CLI
Hello team, it would be great to have a CLI tool.
A CLI tool could make the cozystack admin experience better, including managing Cozystack and interacting with Cozystack api.
The CLI could also be integrated with Talm and talos-bootstrap.
cozyctl talm and cozyctl talos-bootstrap
Here are some examples:
cozyctl install -v 0.30for
kubectl create ns cozy-system
kubectl apply -f cozystack-config.yaml
kubectl apply -f https://github.com/cozystack/cozystack/releases/download/v0.30.0/cozystack-installer.yaml
cozyctl get monitoring-password -n tenant-rootfor
kubectl get secret -n tenant-root grafana-admin-password -o go-template='{{ printf "%s\n" (index .data "password" | base64decode) }}'
cozyctl gen config --bundle paas-fullfor generating the manifestscozyctl deploy kubernetesfor deploying a kubernetes through capi
I believe, talm is close to what you are talking about for deployment tasks
https://cozystack.io/docs/operations/talos/configuration/talm/
Talm is only for managing talos linux, not the cozystack platform. I hope there is a CLI tool for the platform itself to make some operations easier.
I love this idea, we can create a kubectl plugin an distribute it via krew
I also like this idea!
now that the Feature tag is added, can we start to work on this feature?
If so, I'd like to start the CLI work, if you are planning a sub-module or a separate repository for it, these have beeb discussed in a community meeting?
cc: @kvaps @NickVolynkin
Hey @rxinui I started working on cozypkg tool, but it is more for local development
https://github.com/cozystack/cozystack/pull/1050
FYI
If so, I'd like to start the CLI work, if you are planning a sub-module or a separate repository for it, these have beeb discussed in a community meeting?
Please come to our community meeting to discuss
Hi, @kevin880202. I'm Dosu, and I'm helping the cozystack team manage their backlog and am marking this issue as stale.
Issue Summary
- You proposed creating a CLI tool called cozyctl to simplify Cozystack platform management and API interactions.
- The community acknowledged that existing tools like Talm do not cover the Cozystack platform itself, supporting the need for a dedicated CLI.
- Contributors expressed enthusiasm, with suggestions such as a kubectl plugin distributed via krew and ongoing related work on cozypkg.
- Another user showed interest in starting CLI development and was encouraged to discuss plans in the community meeting.
- The issue remains unresolved with no recent updates or progress reported.
Next Steps
- Please let me know if this issue is still relevant to the latest version of the cozystack repository by commenting here to keep the discussion open.
- Otherwise, I will automatically close this issue in 7 days.
Thank you for your understanding and contribution!
Please keep the feature request open.
@NickVolynkin The user has requested to keep the CLI tool feature request open for cozyctl. Could you please assist with this?