diff --git a/docs/auth0_apis_list.md b/docs/auth0_apis_list.md index 1c3d3c02c..3c45f3d15 100644 --- a/docs/auth0_apis_list.md +++ b/docs/auth0_apis_list.md @@ -26,7 +26,7 @@ auth0 apis list [flags] ``` --json Output in json format. - -n, --number int Number of APIs to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of APIs to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_apps_list.md b/docs/auth0_apps_list.md index 66af74c64..c5e89203e 100644 --- a/docs/auth0_apps_list.md +++ b/docs/auth0_apps_list.md @@ -27,7 +27,7 @@ auth0 apps list [flags] ``` --json Output in json format. - -n, --number int Number of apps to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of apps to retrieve. Minimum 1, maximum 1000. (default 100) -r, --reveal-secrets Display the application secrets ('signing_keys', 'client_secret') as part of the command output. ``` diff --git a/docs/auth0_orgs_list.md b/docs/auth0_orgs_list.md index c35b08953..fb165f5af 100644 --- a/docs/auth0_orgs_list.md +++ b/docs/auth0_orgs_list.md @@ -26,7 +26,7 @@ auth0 orgs list [flags] ``` --json Output in json format. - -n, --number int Number of organizations to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organizations to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_members_list.md b/docs/auth0_orgs_members_list.md index 442bccaad..12058e087 100644 --- a/docs/auth0_orgs_members_list.md +++ b/docs/auth0_orgs_members_list.md @@ -26,7 +26,7 @@ auth0 orgs members list [flags] ``` --json Output in json format. - -n, --number int Number of organization members to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organization members to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_roles_list.md b/docs/auth0_orgs_roles_list.md index fce9eef2b..d437b17c5 100644 --- a/docs/auth0_orgs_roles_list.md +++ b/docs/auth0_orgs_roles_list.md @@ -26,7 +26,7 @@ auth0 orgs roles list [flags] ``` --json Output in json format. - -n, --number int Number of organization roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of organization roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_orgs_roles_members_list.md b/docs/auth0_orgs_roles_members_list.md index 7c423f8e7..da59a7ced 100644 --- a/docs/auth0_orgs_roles_members_list.md +++ b/docs/auth0_orgs_roles_members_list.md @@ -28,7 +28,7 @@ auth0 orgs roles members list [flags] ``` --json Output in json format. - -n, --number int Number of members to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of members to retrieve. Minimum 1, maximum 1000. (default 100) -r, --role-id string Role Identifier. ``` diff --git a/docs/auth0_roles_list.md b/docs/auth0_roles_list.md index 6f67a5bf6..cbcc5ba02 100644 --- a/docs/auth0_roles_list.md +++ b/docs/auth0_roles_list.md @@ -26,7 +26,7 @@ auth0 roles list [flags] ``` --json Output in json format. - -n, --number int Number of roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_roles_permissions_list.md b/docs/auth0_roles_permissions_list.md index 3a4657680..289bff008 100644 --- a/docs/auth0_roles_permissions_list.md +++ b/docs/auth0_roles_permissions_list.md @@ -26,7 +26,7 @@ auth0 roles permissions list [flags] ``` --json Output in json format. - -n, --number int Number of permissions to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of permissions to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_users_roles_show.md b/docs/auth0_users_roles_show.md index 1f5fc76f6..513c03b52 100644 --- a/docs/auth0_users_roles_show.md +++ b/docs/auth0_users_roles_show.md @@ -26,7 +26,7 @@ auth0 users roles show [flags] ``` --json Output in json format. - -n, --number int Number of user roles to retrieve. Minimum 1, maximum 1000. (default 50) + -n, --number int Number of user roles to retrieve. Minimum 1, maximum 1000. (default 100) ``` diff --git a/docs/auth0_users_search.md b/docs/auth0_users_search.md index f24111285..66825bb15 100644 --- a/docs/auth0_users_search.md +++ b/docs/auth0_users_search.md @@ -27,7 +27,7 @@ auth0 users search [flags] ``` --json Output in json format. - -n, --number int Number of users, that match the search criteria, to retrieve. Minimum 1, maximum 1000. If limit is hit, refine the search query. (default 50) + -n, --number int Number of users, that match the search criteria, to retrieve. Minimum 1, maximum 1000. If limit is hit, refine the search query. (default 100) -q, --query email:"user123@*.com" OR (user_id:"user-id-123" AND name:"Bob") Search query in Lucene query syntax. For example: email:"user123@*.com" OR (user_id:"user-id-123" AND name:"Bob") diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 5885c11ff..1efe9485b 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -103,7 +103,7 @@ func listActionsCmd(cli *cli) *cobra.Command { var list *management.ActionList if err := ansi.Waiting(func() (err error) { - list, err = cli.api.Action.List(cmd.Context(), management.PerPage(100)) + list, err = cli.api.Action.List(cmd.Context(), management.PerPage(defaultPageSize)) return err }); err != nil { return fmt.Errorf("failed to retrieve actions: %w", err) diff --git a/internal/cli/apps.go b/internal/cli/apps.go index 010eae98f..72c35847b 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -25,7 +25,7 @@ const ( appTypeRegularWeb = "regular_web" appTypeNonInteractive = "non_interactive" appDefaultURL = "http://localhost:3000" - defaultPageSize = 50 + defaultPageSize = 100 ) var ( diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index e36e234cc..576b4e9f2 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -109,7 +109,7 @@ func listCustomDomainsCmd(cli *cli) *cobra.Command { if err := ansi.Waiting(func() error { var err error - list, err = cli.api.CustomDomain.List(cmd.Context()) + list, err = cli.api.CustomDomain.List(cmd.Context(), management.PerPage(defaultPageSize)) return err }); err != nil { return fmt.Errorf("An unexpected error occurred: %w", err) diff --git a/internal/cli/log_streams.go b/internal/cli/log_streams.go index d33e92247..3873649b9 100644 --- a/internal/cli/log_streams.go +++ b/internal/cli/log_streams.go @@ -72,7 +72,7 @@ func listLogStreamsCmd(cli *cli) *cobra.Command { if err := ansi.Waiting(func() error { var err error - list, err = cli.api.LogStream.List(cmd.Context()) + list, err = cli.api.LogStream.List(cmd.Context(), management.PerPage(defaultPageSize)) return err }); err != nil { return fmt.Errorf("An unexpected error occurred: %w", err) diff --git a/internal/cli/logs.go b/internal/cli/logs.go index 7792f95c8..89f778f1a 100644 --- a/internal/cli/logs.go +++ b/internal/cli/logs.go @@ -82,7 +82,7 @@ func listLogsCmd(cli *cli) *cobra.Command { } logsFilter.RegisterString(cmd, &inputs.Filter, "") - logsNum.RegisterInt(cmd, &inputs.Num, 100) + logsNum.RegisterInt(cmd, &inputs.Num, defaultPageSize) cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.")