Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

non interactive cli #667

Open
ysineil opened this issue Feb 2, 2024 · 5 comments
Open

non interactive cli #667

ysineil opened this issue Feb 2, 2024 · 5 comments
Labels
kind/feature Categorizes issue or PR as related to a new feature needs-triage

Comments

@ysineil
Copy link

ysineil commented Feb 2, 2024

Please provide the ability to make the cli non interactive and have the ability to configure per system not only per user.

Trying to automate tasks with a ci/cd pipeline with this cli is challenging at best.

@ysineil ysineil added kind/feature Categorizes issue or PR as related to a new feature needs-triage labels Feb 2, 2024
@dogseye
Copy link

dogseye commented Feb 2, 2024

It appears as though setting up a new context can be completed in a non-interactive way, however, the ability to set up a context system wide compared to per user would be a great addition:

$env:TANZU_API_TOKEN = "<redacted_api_token>" ; $env:TANZU_CLI_CEIP_OPT_IN_PROMPT_ANSWER = 'no' ; tanzu config eula accept ; tanzu context create --endpoint "<redacted_site>" --name "<redacted_name>"

@marckhouzam
Copy link
Contributor

Hi @ysineil. Thanks for the request. The Tanzu CLI should be 100% automatable today but it’s possible some flags or environment variables needed are not well documented.

Could you provide some examples that are causing you problems?

@marckhouzam
Copy link
Contributor

@dogseye do I understand correctly that you would like the CLI to be prefilled with the context? So one person creates it for the whole team for example.

This sounds interesting. Could you open a different issue for this?

@ysineil
Copy link
Author

ysineil commented Feb 6, 2024

@marckhouzam - I'd say this all stems from having to set a context for each user, happy for this issue to be just for that ability. I'll open another issue should we encounter specific commands/issues with automating using the tanzu cli as we migrate from the tkg cli.

The tkg cli was a lot more user-friendly (it was not documented well either) and simple in comparison, so it was a much easier process to get things automated.

@marckhouzam
Copy link
Contributor

@ysineil I don’t believe the tkg CLI allowed a shared setup, did it? Was it the login command that made things easier?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature needs-triage
Projects
None yet
Development

No branches or pull requests

3 participants