You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add team context selection via switch (#14493)
This change is focused around adding the ability to set a team context via a new `cloudquery switch` command that takes a team name, but also introduces a few other features that are adjacent to that:
- Adds `cloudquery switch` (prints current team) and `cloudquery switch <team>` (switches team)
- Adds a `cloudquery logout` command to log out
- Adds a `--team` option to `cloudquery login` as shorthand for `cloudquery login` followed by `cloudquery switch <team>`
- Introduces a `config` library for managing config files. We currently only store a `team` value, but this may be extended in the future.
- Removes the `--url` parameter from `cloudquery publish` and uses an environment variable for this instead. Usually we don't use environment variables, but in this case it is intentional, because you would only ever need to set the URL in tests.
- All tests now use environment variables for overriding the API and accounts URLs
- Renaming `CQ_API_KEY` to `CLOUDQUERY_API_KEY` for clarity and consistency (we will have to update the publish CI job to handle this CC @erezrokah)
0 commit comments