-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #625 from auth0/v1
Release v1
- Loading branch information
Showing
292 changed files
with
9,555 additions
and
8,071 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
# Documentation at http://goreleaser.com | ||
builds: | ||
- main: ./cmd/auth0 | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
binary: auth0 | ||
ldflags: | ||
- main: ./cmd/auth0 | ||
env: | ||
- CGO_ENABLED=0 | ||
goarch: | ||
- amd64 | ||
- arm64 | ||
goos: | ||
- darwin | ||
- linux | ||
- windows | ||
binary: auth0 | ||
ldflags: | ||
- -X 'github.com/auth0/auth0-cli/internal/buildinfo.Version={{.Version}}' | ||
- -X 'github.com/auth0/auth0-cli/internal/buildinfo.Revision={{.Commit}}' | ||
- -X 'github.com/auth0/auth0-cli/internal/buildinfo.BuildUser=goreleaser' | ||
|
@@ -40,36 +40,35 @@ changelog: | |
- "^docs:" | ||
- "^test:" | ||
brews: | ||
- | ||
name: auth0 | ||
- name: auth0 | ||
tap: | ||
owner: auth0 | ||
name: homebrew-auth0-cli | ||
commit_author: | ||
name: auth0 | ||
email: [email protected] | ||
homepage: https://auth0.github.io/auth0-cli | ||
description: Auth0 command-line tool to supercharge your developer workflow | ||
description: Build, manage and test your Auth0 integrations from the command line | ||
license: MIT | ||
skip_upload: auto | ||
install: | | ||
bin.install "auth0" | ||
bin.install "auth0" | ||
(bash_completion/"auth0").write `#{bin}/auth0 completion bash` | ||
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish` | ||
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh` | ||
(bash_completion/"auth0").write `#{bin}/auth0 completion bash` | ||
(fish_completion/"auth0.fish").write `#{bin}/auth0 completion fish` | ||
(zsh_completion/"_auth0").write `#{bin}/auth0 completion zsh` | ||
caveats: "Thanks for installing the Auth0 CLI" | ||
scoop: | ||
name: auth0 | ||
bucket: | ||
owner: auth0 | ||
name: scoop-auth0-cli | ||
commit_author: | ||
name: auth0 | ||
bucket: | ||
owner: auth0 | ||
name: scoop-auth0-cli | ||
commit_author: | ||
name: auth0 | ||
email: [email protected] | ||
commit_msg_template: "Scoop manifest update for {{ .ProjectName }} version {{ .Tag }}" | ||
homepage: https://auth0.github.io/auth0-cli | ||
description: Auth0 command-line tool to supercharge your developer workflow | ||
license: MIT | ||
skip_upload: auto | ||
post_install: ["Write-Host 'Thanks for installing the Auth0 CLI'"] | ||
email: [email protected] | ||
commit_msg_template: "Scoop manifest update for {{ .ProjectName }} version {{ .Tag }}" | ||
homepage: https://auth0.github.io/auth0-cli | ||
description: Build, manage and test your Auth0 integrations from the command line | ||
license: MIT | ||
skip_upload: auto | ||
post_install: ["Write-Host 'Thanks for installing the Auth0 CLI'"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
||
## [Unreleased] | ||
|
||
## [1.0.0-beta.1](https://github.com/auth0/auth0-cli/tree/1.0.0-beta.1) (Jan 20, 2023) | ||
|
||
### Added | ||
|
||
- Ability to view user's assigned roles via `auth0 users roles show` [#604] | ||
- Assign role(s) to user via `auth0 users roles assign` [#605] | ||
- Remove user role(s) via `auth0 users roles remove` [#606] | ||
- `perms` alias for `auth0 roles permissions` command [#534] | ||
- Authenticating via client credentials with `auth0 login` [#546] | ||
- Graceful access token regeneration [#547] | ||
- Storing client secret in operating system keyring [#578] | ||
- Supporting additional scopes through `--scopes` flag when authenticating as user [#538] | ||
- Argument to specify log stream type for `auth0 logs streams create` and `auth0 logs streams update` [#599] | ||
- Better guidance on authenticating in the `auth0 login` help text [#565] | ||
- Confirmation prompts before applying editor updates [#603] | ||
|
||
### Changed | ||
|
||
- `--format json` flag/value pair consolidated to `--json` [#533] | ||
- Flattened the `auth0 branding` commands into the root-level [#540], [#541] | ||
- Moved `auth0 ips` command to `auth0 ap sit ips` [#618] | ||
- Moved `auth0 users unblock` to `auth0 users blocks unblock` [#617] | ||
- `--reveal` flag for reveal client secret renamed to `--reveal-secrets` [#591] | ||
- Editorializing code "hints" throughout project [#570] | ||
|
||
### Fixed | ||
|
||
- "something went wrong" error during `auth0 branding texts update` [#584] | ||
- Help text descriptions for most instances of `--number` flag [#610] | ||
- Allow updating a non-existent email template with `auth0 email templates update` [#611] | ||
- `--no-input` flag works for `auth0 test token` and `auth0 test login` commands [#613] | ||
- `--no-color` flag works for all commands [#594] | ||
- All available triggers present when running `auth0 actions create` [#597] | ||
- Extraneous payload property when running `auth0 orgs update` [#583] | ||
- Users search command enables pagination through `--number` flag [#588] | ||
- Tenant commands now respect `--tenant` flag [#612] | ||
- Log tail output now displays absolute time instead of relative [#590] | ||
- Adding missing headers for `auth0 logs list` [#589] | ||
- Output new action data when running `auth0 actions update` [#596] | ||
- Log streams "no roles" errors message [#598] | ||
- Removed erroneous `auth0 apis show --json` truncation message [#607] | ||
- Skip interactive elements when `--json` and `--force` flags are passed [#616] | ||
|
||
### Removed | ||
|
||
- `--force` and `--json` flags relegated from global context, now applied only where appropriate [#536], [#595] | ||
- Undocumented `auth0 config init` command [#532] | ||
- `auth0 tenants add` command in favor of `auth0 login` [#546] | ||
- Updating of action triggers which inevitably results in error [#597] | ||
|
||
[#604]: https://github.com/auth0/auth0-cli/issues/604 | ||
[#605]: https://github.com/auth0/auth0-cli/issues/605 | ||
[#606]: https://github.com/auth0/auth0-cli/issues/606 | ||
[#534]: https://github.com/auth0/auth0-cli/issues/534 | ||
[#546]: https://github.com/auth0/auth0-cli/issues/546 | ||
[#547]: https://github.com/auth0/auth0-cli/issues/547 | ||
[#578]: https://github.com/auth0/auth0-cli/issues/578 | ||
[#538]: https://github.com/auth0/auth0-cli/issues/538 | ||
[#599]: https://github.com/auth0/auth0-cli/issues/599 | ||
[#565]: https://github.com/auth0/auth0-cli/issues/565 | ||
[#603]: https://github.com/auth0/auth0-cli/issues/603 | ||
[#533]: https://github.com/auth0/auth0-cli/issues/533 | ||
[#540]: https://github.com/auth0/auth0-cli/issues/540 | ||
[#541]: https://github.com/auth0/auth0-cli/issues/541 | ||
[#591]: https://github.com/auth0/auth0-cli/issues/591 | ||
[#570]: https://github.com/auth0/auth0-cli/issues/570 | ||
[#584]: https://github.com/auth0/auth0-cli/issues/584 | ||
[#610]: https://github.com/auth0/auth0-cli/issues/610 | ||
[#611]: https://github.com/auth0/auth0-cli/issues/611 | ||
[#613]: https://github.com/auth0/auth0-cli/issues/613 | ||
[#594]: https://github.com/auth0/auth0-cli/issues/594 | ||
[#597]: https://github.com/auth0/auth0-cli/issues/597 | ||
[#583]: https://github.com/auth0/auth0-cli/issues/583 | ||
[#588]: https://github.com/auth0/auth0-cli/issues/588 | ||
[#590]: https://github.com/auth0/auth0-cli/issues/590 | ||
[#589]: https://github.com/auth0/auth0-cli/issues/589 | ||
[#596]: https://github.com/auth0/auth0-cli/issues/596 | ||
[#598]: https://github.com/auth0/auth0-cli/issues/598 | ||
[#607]: https://github.com/auth0/auth0-cli/issues/607 | ||
[#616]: https://github.com/auth0/auth0-cli/issues/616 | ||
[#536]: https://github.com/auth0/auth0-cli/issues/536 | ||
[#532]: https://github.com/auth0/auth0-cli/issues/532 | ||
[#546]: https://github.com/auth0/auth0-cli/issues/546 | ||
[#597]: https://github.com/auth0/auth0-cli/issues/597 | ||
[#617]: https://github.com/auth0/auth0-cli/issues/617 | ||
[#618]: https://github.com/auth0/auth0-cli/issues/618 | ||
[#612]: https://github.com/auth0/auth0-cli/issues/612 | ||
[#595]: https://github.com/auth0/auth0-cli/issues/595 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
# Migration Guide | ||
|
||
## Upgrading from v0.x → v1.0 | ||
|
||
As is to be expected with a major release, there are breaking changes in this update. Please ensure you read this guide | ||
thoroughly and prepare your potential automated workflows before upgrading to the Auth0 CLI v1. | ||
|
||
### Breaking Changes | ||
|
||
- [Commands Reorganization](#commands-reorganization) | ||
- [Authenticating With Client Credentials](#authenticating-with-client-credentials) | ||
- [JSON Output Flag](#json-output-flag) | ||
- [Reveal Client Secrets Flag](#reveal-client-secrets-flag) | ||
- [Config Command Removal](#config-command-removal) | ||
|
||
#### Commands Reorganization | ||
|
||
Some commands have been reorganized to establish a more systematic hierarchy. | ||
All other facets of the commands (arguments, flags, etc.) remain the same. | ||
|
||
| **Before (v0)** | **After (v1)** | | ||
|----------------------------|-------------------------------------------------| | ||
| `auth0 ips` | `auth0 protection suspicious-ip-throttling ips` | | ||
| `auth0 users unblock` | `auth0 users blocks unblock` | | ||
| `auth0 branding domains` | `auth0 domains` | | ||
| `auth0 branding emails` | `auth0 email templates` | | ||
| `auth0 branding show` | `auth0 universal-login show` | | ||
| `auth0 branding update` | `auth0 universal-login update` | | ||
| `auth0 branding templates` | `auth0 universal-login templates` | | ||
| `auth0 branding texts` | `auth0 universal-login prompts` | | ||
|
||
#### Authenticating With Client Credentials | ||
|
||
The `auth0 tenants add` command which enabled authenticating to a tenant via client credentials has been consolidated | ||
into the `auth0 login` command. It can be interfaced interactively through the terminal or non-interactively by passing | ||
in the client credentials through the flags. | ||
|
||
|
||
<table> | ||
<tr> | ||
<th>Before (v0)</th> | ||
<th>After (v1)</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
auth0 tenants add travel0.us.auth0.com \ | ||
--client-id tUIvAH7g2ykVM4lGriYEQ6BKV3je24Ka \ | ||
--client-secret XXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
``` | ||
</td> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
auth0 login --domain travel0.us.auth0.com \ | ||
--client-id tUIvAH7g2ykVM4lGriYEQ6BKV3je24Ka \ | ||
--client-secret XXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
``` | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
#### JSON Output Flag | ||
|
||
The `--format json` flag-value pair has been condensed into the `--json` flag. | ||
|
||
| **Before (v0)** | **After (v1)** | | ||
|---------------------------------|--------------------------| | ||
| `auth0 apps list --format json` | `auth0 apps list --json` | | ||
|
||
#### Log Streams | ||
|
||
In `v0.x`, the creation and updating of log streams through the `auth0 logs streams create` and | ||
`auth0 log streams update` commands facilitated the management of all log stream types with a mass of | ||
type-specific flags. For `v1.x`, the type of log stream is now required as an argument. | ||
This change facilitates more ergonomic flags and type-specific validations. | ||
|
||
<table> | ||
<tr> | ||
<th>Before (v0)</th> | ||
<th>After (v1)</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
auth0 logs streams create \ | ||
--type datadog \ | ||
--name "My Datadog Log Stream" \ | ||
--datadog-id us \ | ||
--datadog-key 3c0c4965368b6b10f8640dbda46abfdc | ||
``` | ||
</td> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
auth0 logs streams create datadog \ | ||
--name "My Datadog Log Stream" \ | ||
--region us \ | ||
--api-key 3c0c4965368b6b10f8640dbda46abfdc | ||
``` | ||
</td> | ||
</tr> | ||
</table> | ||
|
||
#### Reveal Client Secrets Flag | ||
|
||
In `v0.x`, the `auth0 apps create` command has a `--reveal` flag that would reveal the client secrets in the output. | ||
This flag has changed to `--reveal-secrets` to clarify what is being revealed. | ||
|
||
| **Before (v0)** | **After (v1)** | | ||
|------------------------------|--------------------------------------| | ||
| `auth0 apps create --reveal` | `auth0 apps create --reveal-secrets` | | ||
|
||
|
||
#### Config Command Removal | ||
|
||
In `v0.x`, the undocumented `auth0 config init` command existed to authenticate with a tenant for E2E testing. | ||
It authenticated with tenants via client credentials which were sourced from environment variables. | ||
This command has been removed in favor of the `auth0 login` command. | ||
|
||
<table> | ||
<tr> | ||
<th>Before (v0)</th> | ||
<th>After (v1)</th> | ||
</tr> | ||
<tr> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
AUTH0_CLI_CLIENT_DOMAIN="travel0.us.auth0.com" \ | ||
AUTH0_CLI_CLIENT_ID="tUIvPH7g2ykVm4lGriYEQ6BKV3je24Ka" \ | ||
AUTH0_CLI_CLIENT_SECRET="XXXXXXXXXXXXXXXXXXXXXXXXXXXX" \ | ||
auth0 config init | ||
``` | ||
</td> | ||
<td> | ||
|
||
```sh | ||
# Example: | ||
auth0 login --domain travel0.us.auth0.com \ | ||
--client-id tUIvPH7g2ykVm4lGriYEQ6BKV3je24Ka \ | ||
--client-secret XXXXXXXXXXXXXXXXXXXXXXXXXXXX | ||
``` | ||
</td> | ||
</tr> | ||
</table> |
Oops, something went wrong.