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

Feature/cli login #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

ericklb84
Copy link

This pull request complements the Toolbelt PR

What is the purpose of this pull request?

The purpose of this pull request is to introduce pipeline support in the VTEX TOOLBELT CLI, aiming to optimize the workflow in CI/CD pipelines. This is achieved by adding a -p or --pipeline flag to the login command, allowing automatic login using VTEX_API_KEY and VTEX_API_TOKEN environment variables, and also adding this flag to the release, publish, deprecate in toolbelt pr, and supporting deploy command in this PR.

This commands to remove unnecessary confirmations in these automated contexts.

What problem is this solving?

This change addresses the issue of having to manually confirm actions or perform logins, which is impractical in continuous integration and delivery environments, where automatic and interaction-free processes are essential for efficiency and scalability.

How should this be manually tested?

To manually test this feature, you can follow these steps:
vtex deploy -p
or
vtex deploy --pipeline

Screenshots or example usage

Below are examples of how the commands can be executed with the new -p or --pipeline flag, illustrating the practical use of this new feature:

this examples is using unix/linux environment

vtex deploy -p
or
vtex deploy --pipeline

Types of changes

  • Refactor (non-breaking change that only makes the code better)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Chores checklist

  • [] Update CHANGELOG.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant