From 195ad786e238f4b6e0f124b5d8085df811c6371e Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Thu, 13 Aug 2026 12:47:39 +0530 Subject: [PATCH 1/6] feat: add `--agent-mode` flag to output JSON and disable prompts/colors for AI agents --- docs/auth0_actions_create.md | 1 + docs/auth0_actions_delete.md | 1 + docs/auth0_actions_deploy.md | 1 + docs/auth0_actions_diff.md | 1 + docs/auth0_actions_list.md | 1 + docs/auth0_actions_open.md | 1 + docs/auth0_actions_show.md | 1 + docs/auth0_actions_update.md | 1 + docs/auth0_acul_config_docs.md | 1 + docs/auth0_acul_config_generate.md | 1 + docs/auth0_acul_config_get.md | 1 + docs/auth0_acul_config_list.md | 1 + docs/auth0_acul_config_set.md | 1 + docs/auth0_acul_dev.md | 1 + docs/auth0_acul_init.md | 1 + docs/auth0_acul_screen_add.md | 1 + docs/auth0_api.md | 1 + docs/auth0_apis_create.md | 1 + docs/auth0_apis_delete.md | 1 + docs/auth0_apis_list.md | 1 + docs/auth0_apis_open.md | 1 + docs/auth0_apis_scopes_list.md | 1 + docs/auth0_apis_show.md | 1 + docs/auth0_apis_update.md | 1 + docs/auth0_apps_create.md | 1 + docs/auth0_apps_delete.md | 1 + docs/auth0_apps_list.md | 1 + docs/auth0_apps_open.md | 1 + docs/auth0_apps_session-transfer_show.md | 1 + docs/auth0_apps_session-transfer_update.md | 1 + docs/auth0_apps_show.md | 1 + docs/auth0_apps_update.md | 1 + docs/auth0_apps_use.md | 1 + docs/auth0_completion.md | 1 + docs/auth0_domains_create.md | 1 + docs/auth0_domains_default_set.md | 1 + docs/auth0_domains_default_show.md | 1 + docs/auth0_domains_delete.md | 1 + docs/auth0_domains_list.md | 1 + docs/auth0_domains_show.md | 1 + docs/auth0_domains_update.md | 1 + docs/auth0_domains_verify.md | 1 + docs/auth0_email_provider_create.md | 1 + docs/auth0_email_provider_delete.md | 1 + docs/auth0_email_provider_show.md | 1 + docs/auth0_email_provider_update.md | 1 + docs/auth0_email_templates_show.md | 1 + docs/auth0_email_templates_update.md | 1 + docs/auth0_event-streams_create.md | 1 + docs/auth0_event-streams_delete.md | 1 + docs/auth0_event-streams_deliveries_list.md | 1 + docs/auth0_event-streams_deliveries_show.md | 1 + docs/auth0_event-streams_list.md | 1 + docs/auth0_event-streams_redeliver-many.md | 1 + docs/auth0_event-streams_redeliver.md | 1 + docs/auth0_event-streams_show.md | 1 + docs/auth0_event-streams_stats.md | 1 + docs/auth0_event-streams_subscribe.md | 1 + docs/auth0_event-streams_trigger.md | 1 + docs/auth0_event-streams_update.md | 1 + docs/auth0_login.md | 1 + docs/auth0_logout.md | 1 + docs/auth0_logs_list.md | 1 + docs/auth0_logs_streams_create_datadog.md | 1 + docs/auth0_logs_streams_create_eventbridge.md | 1 + docs/auth0_logs_streams_create_eventgrid.md | 1 + docs/auth0_logs_streams_create_http.md | 1 + docs/auth0_logs_streams_create_splunk.md | 1 + docs/auth0_logs_streams_create_sumo.md | 1 + docs/auth0_logs_streams_delete.md | 1 + docs/auth0_logs_streams_list.md | 1 + docs/auth0_logs_streams_open.md | 1 + docs/auth0_logs_streams_show.md | 1 + docs/auth0_logs_streams_update_datadog.md | 1 + docs/auth0_logs_streams_update_eventbridge.md | 1 + docs/auth0_logs_streams_update_eventgrid.md | 1 + docs/auth0_logs_streams_update_http.md | 1 + docs/auth0_logs_streams_update_splunk.md | 1 + docs/auth0_logs_streams_update_sumo.md | 1 + docs/auth0_logs_tail.md | 1 + docs/auth0_network-acl_create.md | 1 + docs/auth0_network-acl_delete.md | 1 + docs/auth0_network-acl_list.md | 1 + docs/auth0_network-acl_show.md | 1 + docs/auth0_network-acl_update.md | 1 + docs/auth0_orgs_create.md | 1 + docs/auth0_orgs_delete.md | 1 + docs/auth0_orgs_invitations_create.md | 1 + docs/auth0_orgs_invitations_delete.md | 1 + docs/auth0_orgs_invitations_list.md | 1 + docs/auth0_orgs_invitations_show.md | 1 + docs/auth0_orgs_list.md | 1 + docs/auth0_orgs_members_list.md | 1 + docs/auth0_orgs_open.md | 1 + docs/auth0_orgs_roles_list.md | 1 + docs/auth0_orgs_roles_members_list.md | 1 + docs/auth0_orgs_show.md | 1 + docs/auth0_orgs_update.md | 1 + docs/auth0_phone_provider_create.md | 1 + docs/auth0_phone_provider_delete.md | 1 + docs/auth0_phone_provider_list.md | 1 + docs/auth0_phone_provider_show.md | 1 + docs/auth0_phone_provider_update.md | 1 + docs/auth0_protection_bot-detection_show.md | 1 + docs/auth0_protection_bot-detection_update.md | 1 + ...ection_breached-password-detection_show.md | 1 + ...tion_breached-password-detection_update.md | 1 + ..._protection_brute-force-protection_show.md | 1 + ...rotection_brute-force-protection_update.md | 1 + ...tion_suspicious-ip-throttling_ips_check.md | 1 + ...on_suspicious-ip-throttling_ips_unblock.md | 1 + ...rotection_suspicious-ip-throttling_show.md | 1 + ...tection_suspicious-ip-throttling_update.md | 1 + docs/auth0_quickstarts_download.md | 1 + docs/auth0_quickstarts_list.md | 1 + docs/auth0_quickstarts_setup.md | 1 + docs/auth0_roles_create.md | 1 + docs/auth0_roles_delete.md | 1 + docs/auth0_roles_list.md | 1 + docs/auth0_roles_permissions_add.md | 1 + docs/auth0_roles_permissions_list.md | 1 + docs/auth0_roles_permissions_remove.md | 1 + docs/auth0_roles_show.md | 1 + docs/auth0_roles_update.md | 1 + docs/auth0_rules_create.md | 1 + docs/auth0_rules_delete.md | 1 + docs/auth0_rules_disable.md | 1 + docs/auth0_rules_enable.md | 1 + docs/auth0_rules_list.md | 1 + docs/auth0_rules_show.md | 1 + docs/auth0_rules_update.md | 1 + docs/auth0_tenant-settings_show.md | 1 + docs/auth0_tenant-settings_update_set.md | 1 + docs/auth0_tenant-settings_update_unset.md | 1 + docs/auth0_tenants_list.md | 1 + docs/auth0_tenants_open.md | 1 + docs/auth0_tenants_use.md | 1 + docs/auth0_terraform_generate.md | 1 + docs/auth0_test_login.md | 1 + docs/auth0_test_token.md | 1 + docs/auth0_token-exchange_create.md | 1 + docs/auth0_token-exchange_delete.md | 1 + docs/auth0_token-exchange_list.md | 1 + docs/auth0_token-exchange_show.md | 1 + docs/auth0_token-exchange_update.md | 1 + docs/auth0_universal-login_customize.md | 1 + docs/auth0_universal-login_prompts_show.md | 1 + docs/auth0_universal-login_prompts_update.md | 1 + docs/auth0_universal-login_show.md | 1 + docs/auth0_universal-login_switch.md | 1 + docs/auth0_universal-login_templates_show.md | 1 + .../auth0_universal-login_templates_update.md | 1 + docs/auth0_universal-login_update.md | 1 + docs/auth0_users_blocks_list.md | 1 + docs/auth0_users_blocks_unblock.md | 1 + docs/auth0_users_create.md | 1 + docs/auth0_users_delete.md | 1 + docs/auth0_users_import.md | 1 + docs/auth0_users_open.md | 1 + docs/auth0_users_roles_assign.md | 1 + docs/auth0_users_roles_remove.md | 1 + docs/auth0_users_roles_show.md | 1 + docs/auth0_users_search-by-email.md | 1 + docs/auth0_users_search.md | 1 + docs/auth0_users_show.md | 1 + docs/auth0_users_update.md | 1 + internal/cli/cli.go | 1 + internal/cli/root.go | 73 +++++++++++++++++++ internal/cli/root_test.go | 46 ++++++++++++ 169 files changed, 286 insertions(+) diff --git a/docs/auth0_actions_create.md b/docs/auth0_actions_create.md index 478d85d30..e33578e1c 100644 --- a/docs/auth0_actions_create.md +++ b/docs/auth0_actions_create.md @@ -48,6 +48,7 @@ auth0 actions create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_delete.md b/docs/auth0_actions_delete.md index b7af598c3..2f75a5261 100644 --- a/docs/auth0_actions_delete.md +++ b/docs/auth0_actions_delete.md @@ -38,6 +38,7 @@ auth0 actions delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_deploy.md b/docs/auth0_actions_deploy.md index 286c0fb56..50cfe3ab5 100644 --- a/docs/auth0_actions_deploy.md +++ b/docs/auth0_actions_deploy.md @@ -35,6 +35,7 @@ auth0 actions deploy [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_diff.md b/docs/auth0_actions_diff.md index 541ff8596..fa6af316e 100644 --- a/docs/auth0_actions_diff.md +++ b/docs/auth0_actions_diff.md @@ -25,6 +25,7 @@ auth0 actions diff ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_list.md b/docs/auth0_actions_list.md index aad7a2eab..c08a7b1ab 100644 --- a/docs/auth0_actions_list.md +++ b/docs/auth0_actions_list.md @@ -35,6 +35,7 @@ auth0 actions list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_open.md b/docs/auth0_actions_open.md index ed4805142..2e16e9799 100644 --- a/docs/auth0_actions_open.md +++ b/docs/auth0_actions_open.md @@ -25,6 +25,7 @@ auth0 actions open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_show.md b/docs/auth0_actions_show.md index 40fe95d79..009f841e1 100644 --- a/docs/auth0_actions_show.md +++ b/docs/auth0_actions_show.md @@ -33,6 +33,7 @@ auth0 actions show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_update.md b/docs/auth0_actions_update.md index 12900a4b3..0547d81ef 100644 --- a/docs/auth0_actions_update.md +++ b/docs/auth0_actions_update.md @@ -48,6 +48,7 @@ auth0 actions update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_config_docs.md b/docs/auth0_acul_config_docs.md index 1a7052803..5acbbd278 100644 --- a/docs/auth0_acul_config_docs.md +++ b/docs/auth0_acul_config_docs.md @@ -24,6 +24,7 @@ auth0 acul config docs [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_config_generate.md b/docs/auth0_acul_config_generate.md index 4b582e9a3..a203224e4 100644 --- a/docs/auth0_acul_config_generate.md +++ b/docs/auth0_acul_config_generate.md @@ -33,6 +33,7 @@ auth0 acul config generate [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_config_get.md b/docs/auth0_acul_config_get.md index 8ee5c30af..6d168d46c 100644 --- a/docs/auth0_acul_config_get.md +++ b/docs/auth0_acul_config_get.md @@ -32,6 +32,7 @@ auth0 acul config get [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_config_list.md b/docs/auth0_acul_config_list.md index 06c2387ca..47cf24cda 100644 --- a/docs/auth0_acul_config_list.md +++ b/docs/auth0_acul_config_list.md @@ -40,6 +40,7 @@ auth0 acul config list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_config_set.md b/docs/auth0_acul_config_set.md index 2d7a25e8b..cfc411426 100644 --- a/docs/auth0_acul_config_set.md +++ b/docs/auth0_acul_config_set.md @@ -32,6 +32,7 @@ auth0 acul config set [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_dev.md b/docs/auth0_acul_dev.md index 51805520e..194234f93 100644 --- a/docs/auth0_acul_dev.md +++ b/docs/auth0_acul_dev.md @@ -61,6 +61,7 @@ auth0 acul dev [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_init.md b/docs/auth0_acul_init.md index 875260f42..eff3318ac 100644 --- a/docs/auth0_acul_init.md +++ b/docs/auth0_acul_init.md @@ -35,6 +35,7 @@ auth0 acul init [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_acul_screen_add.md b/docs/auth0_acul_screen_add.md index b08d6c709..b3e4f27d8 100644 --- a/docs/auth0_acul_screen_add.md +++ b/docs/auth0_acul_screen_add.md @@ -30,6 +30,7 @@ auth0 acul screen add [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_api.md b/docs/auth0_api.md index 723b4f86d..3969bb501 100644 --- a/docs/auth0_api.md +++ b/docs/auth0_api.md @@ -38,6 +38,7 @@ auth0 api [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_create.md b/docs/auth0_apis_create.md index 5d461752a..76734948c 100644 --- a/docs/auth0_apis_create.md +++ b/docs/auth0_apis_create.md @@ -53,6 +53,7 @@ auth0 apis create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_delete.md b/docs/auth0_apis_delete.md index 4777fb789..1f70b0bea 100644 --- a/docs/auth0_apis_delete.md +++ b/docs/auth0_apis_delete.md @@ -38,6 +38,7 @@ auth0 apis delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_list.md b/docs/auth0_apis_list.md index e6a5b1802..671b099c6 100644 --- a/docs/auth0_apis_list.md +++ b/docs/auth0_apis_list.md @@ -37,6 +37,7 @@ auth0 apis list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_open.md b/docs/auth0_apis_open.md index b28f03949..e9471c64a 100644 --- a/docs/auth0_apis_open.md +++ b/docs/auth0_apis_open.md @@ -25,6 +25,7 @@ auth0 apis open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_scopes_list.md b/docs/auth0_apis_scopes_list.md index 577847929..594c364e5 100644 --- a/docs/auth0_apis_scopes_list.md +++ b/docs/auth0_apis_scopes_list.md @@ -35,6 +35,7 @@ auth0 apis scopes list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_show.md b/docs/auth0_apis_show.md index b23fe78d6..612d9b7cb 100644 --- a/docs/auth0_apis_show.md +++ b/docs/auth0_apis_show.md @@ -33,6 +33,7 @@ auth0 apis show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apis_update.md b/docs/auth0_apis_update.md index 01695bb70..2f7227520 100644 --- a/docs/auth0_apis_update.md +++ b/docs/auth0_apis_update.md @@ -51,6 +51,7 @@ auth0 apis update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_create.md b/docs/auth0_apps_create.md index 82670d1e6..4fabf1af1 100644 --- a/docs/auth0_apps_create.md +++ b/docs/auth0_apps_create.md @@ -67,6 +67,7 @@ auth0 apps create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_delete.md b/docs/auth0_apps_delete.md index 8ff4e02ac..1c4897bf1 100644 --- a/docs/auth0_apps_delete.md +++ b/docs/auth0_apps_delete.md @@ -38,6 +38,7 @@ auth0 apps delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_list.md b/docs/auth0_apps_list.md index d0a3ab18e..a38e14479 100644 --- a/docs/auth0_apps_list.md +++ b/docs/auth0_apps_list.md @@ -39,6 +39,7 @@ auth0 apps list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_open.md b/docs/auth0_apps_open.md index 46d97c3ba..8d9b685e8 100644 --- a/docs/auth0_apps_open.md +++ b/docs/auth0_apps_open.md @@ -25,6 +25,7 @@ auth0 apps open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_session-transfer_show.md b/docs/auth0_apps_session-transfer_show.md index 9ca50defa..16c671594 100644 --- a/docs/auth0_apps_session-transfer_show.md +++ b/docs/auth0_apps_session-transfer_show.md @@ -32,6 +32,7 @@ auth0 apps session-transfer show ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_session-transfer_update.md b/docs/auth0_apps_session-transfer_update.md index 03cde0bcb..dcc7a42b4 100644 --- a/docs/auth0_apps_session-transfer_update.md +++ b/docs/auth0_apps_session-transfer_update.md @@ -41,6 +41,7 @@ auth0 apps session-transfer update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_show.md b/docs/auth0_apps_show.md index 281775f01..a6b1ef22d 100644 --- a/docs/auth0_apps_show.md +++ b/docs/auth0_apps_show.md @@ -35,6 +35,7 @@ auth0 apps show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_update.md b/docs/auth0_apps_update.md index b4bfb1cf9..dcc467be1 100644 --- a/docs/auth0_apps_update.md +++ b/docs/auth0_apps_update.md @@ -65,6 +65,7 @@ auth0 apps update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_apps_use.md b/docs/auth0_apps_use.md index 60ade5319..dc825490a 100644 --- a/docs/auth0_apps_use.md +++ b/docs/auth0_apps_use.md @@ -31,6 +31,7 @@ auth0 apps use [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_completion.md b/docs/auth0_completion.md index 0d7d31c4b..7698bfccb 100644 --- a/docs/auth0_completion.md +++ b/docs/auth0_completion.md @@ -89,6 +89,7 @@ auth0 completion [bash|zsh|fish|powershell] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_create.md b/docs/auth0_domains_create.md index 410937e51..f9f59b1a4 100644 --- a/docs/auth0_domains_create.md +++ b/docs/auth0_domains_create.md @@ -47,6 +47,7 @@ auth0 domains create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_default_set.md b/docs/auth0_domains_default_set.md index 6f32cda74..48a3ec27a 100644 --- a/docs/auth0_domains_default_set.md +++ b/docs/auth0_domains_default_set.md @@ -38,6 +38,7 @@ auth0 domains default set [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_default_show.md b/docs/auth0_domains_default_show.md index adcc61591..6f0606545 100644 --- a/docs/auth0_domains_default_show.md +++ b/docs/auth0_domains_default_show.md @@ -32,6 +32,7 @@ auth0 domains default show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_delete.md b/docs/auth0_domains_delete.md index a31bd2842..d8fe45fab 100644 --- a/docs/auth0_domains_delete.md +++ b/docs/auth0_domains_delete.md @@ -38,6 +38,7 @@ auth0 domains delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_list.md b/docs/auth0_domains_list.md index ef74aaa4e..65b06491e 100644 --- a/docs/auth0_domains_list.md +++ b/docs/auth0_domains_list.md @@ -38,6 +38,7 @@ auth0 domains list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_show.md b/docs/auth0_domains_show.md index c41ff89ef..855e077ae 100644 --- a/docs/auth0_domains_show.md +++ b/docs/auth0_domains_show.md @@ -33,6 +33,7 @@ auth0 domains show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_update.md b/docs/auth0_domains_update.md index 9ac620fa9..dc67923eb 100644 --- a/docs/auth0_domains_update.md +++ b/docs/auth0_domains_update.md @@ -42,6 +42,7 @@ auth0 domains update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_domains_verify.md b/docs/auth0_domains_verify.md index 9d72f9586..139da3036 100644 --- a/docs/auth0_domains_verify.md +++ b/docs/auth0_domains_verify.md @@ -35,6 +35,7 @@ auth0 domains verify [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_provider_create.md b/docs/auth0_email_provider_create.md index a4b7031f3..3e9a522db 100644 --- a/docs/auth0_email_provider_create.md +++ b/docs/auth0_email_provider_create.md @@ -53,6 +53,7 @@ auth0 email provider create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_provider_delete.md b/docs/auth0_email_provider_delete.md index e158d70b8..c86fe601f 100644 --- a/docs/auth0_email_provider_delete.md +++ b/docs/auth0_email_provider_delete.md @@ -36,6 +36,7 @@ auth0 email provider delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_provider_show.md b/docs/auth0_email_provider_show.md index 44b55d9fe..f9f3d4d14 100644 --- a/docs/auth0_email_provider_show.md +++ b/docs/auth0_email_provider_show.md @@ -32,6 +32,7 @@ auth0 email provider show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_provider_update.md b/docs/auth0_email_provider_update.md index 469042431..92369f882 100644 --- a/docs/auth0_email_provider_update.md +++ b/docs/auth0_email_provider_update.md @@ -57,6 +57,7 @@ auth0 email provider update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_templates_show.md b/docs/auth0_email_templates_show.md index b562219cd..9de3a4cc1 100644 --- a/docs/auth0_email_templates_show.md +++ b/docs/auth0_email_templates_show.md @@ -32,6 +32,7 @@ auth0 email templates show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_email_templates_update.md b/docs/auth0_email_templates_update.md index 4ead1f717..d128b6d7d 100644 --- a/docs/auth0_email_templates_update.md +++ b/docs/auth0_email_templates_update.md @@ -52,6 +52,7 @@ auth0 email templates update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_create.md b/docs/auth0_event-streams_create.md index 3c2b79c6f..d463a3d0b 100644 --- a/docs/auth0_event-streams_create.md +++ b/docs/auth0_event-streams_create.md @@ -45,6 +45,7 @@ auth0 event-streams create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_delete.md b/docs/auth0_event-streams_delete.md index be747e8e4..9449a3ba6 100644 --- a/docs/auth0_event-streams_delete.md +++ b/docs/auth0_event-streams_delete.md @@ -38,6 +38,7 @@ auth0 event-streams delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_deliveries_list.md b/docs/auth0_event-streams_deliveries_list.md index cdef2cf34..b91505223 100644 --- a/docs/auth0_event-streams_deliveries_list.md +++ b/docs/auth0_event-streams_deliveries_list.md @@ -41,6 +41,7 @@ auth0 event-streams deliveries list [event-stream-id] [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_deliveries_show.md b/docs/auth0_event-streams_deliveries_show.md index c923c0e5a..9200814bd 100644 --- a/docs/auth0_event-streams_deliveries_show.md +++ b/docs/auth0_event-streams_deliveries_show.md @@ -33,6 +33,7 @@ auth0 event-streams deliveries show [stream-id] [delivery-id] [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_list.md b/docs/auth0_event-streams_list.md index be407dc1c..4bbbfaab4 100644 --- a/docs/auth0_event-streams_list.md +++ b/docs/auth0_event-streams_list.md @@ -35,6 +35,7 @@ auth0 event-streams list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_redeliver-many.md b/docs/auth0_event-streams_redeliver-many.md index 66c083923..ded37bad0 100644 --- a/docs/auth0_event-streams_redeliver-many.md +++ b/docs/auth0_event-streams_redeliver-many.md @@ -36,6 +36,7 @@ auth0 event-streams redeliver-many [stream-id] [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_redeliver.md b/docs/auth0_event-streams_redeliver.md index 6810b7203..0cf9fa582 100644 --- a/docs/auth0_event-streams_redeliver.md +++ b/docs/auth0_event-streams_redeliver.md @@ -27,6 +27,7 @@ auth0 event-streams redeliver [stream-id] [comma-separated-delivery-ids] [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_show.md b/docs/auth0_event-streams_show.md index 3d900e413..8cd1d933a 100644 --- a/docs/auth0_event-streams_show.md +++ b/docs/auth0_event-streams_show.md @@ -33,6 +33,7 @@ auth0 event-streams show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_stats.md b/docs/auth0_event-streams_stats.md index 1a6808baf..bfff52482 100644 --- a/docs/auth0_event-streams_stats.md +++ b/docs/auth0_event-streams_stats.md @@ -34,6 +34,7 @@ auth0 event-streams stats [stream-id] [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_subscribe.md b/docs/auth0_event-streams_subscribe.md index 4442e9c7e..6ae604c03 100644 --- a/docs/auth0_event-streams_subscribe.md +++ b/docs/auth0_event-streams_subscribe.md @@ -59,6 +59,7 @@ auth0 event-streams subscribe [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_trigger.md b/docs/auth0_event-streams_trigger.md index 7df3381e3..4dd74295d 100644 --- a/docs/auth0_event-streams_trigger.md +++ b/docs/auth0_event-streams_trigger.md @@ -34,6 +34,7 @@ auth0 event-streams trigger [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_event-streams_update.md b/docs/auth0_event-streams_update.md index 4a13c67b4..79745e0e6 100644 --- a/docs/auth0_event-streams_update.md +++ b/docs/auth0_event-streams_update.md @@ -47,6 +47,7 @@ auth0 event-streams update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_login.md b/docs/auth0_login.md index 0d75a889f..f30cb2f0a 100644 --- a/docs/auth0_login.md +++ b/docs/auth0_login.md @@ -42,6 +42,7 @@ auth0 login [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logout.md b/docs/auth0_logout.md index af800dd04..cf43a82db 100644 --- a/docs/auth0_logout.md +++ b/docs/auth0_logout.md @@ -25,6 +25,7 @@ auth0 logout [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_list.md b/docs/auth0_logs_list.md index 84cb6ce57..911e78d92 100644 --- a/docs/auth0_logs_list.md +++ b/docs/auth0_logs_list.md @@ -45,6 +45,7 @@ auth0 logs list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_datadog.md b/docs/auth0_logs_streams_create_datadog.md index 839ee39c7..7e36bb778 100644 --- a/docs/auth0_logs_streams_create_datadog.md +++ b/docs/auth0_logs_streams_create_datadog.md @@ -51,6 +51,7 @@ auth0 logs streams create datadog [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_eventbridge.md b/docs/auth0_logs_streams_create_eventbridge.md index 4a625af00..ce633520d 100644 --- a/docs/auth0_logs_streams_create_eventbridge.md +++ b/docs/auth0_logs_streams_create_eventbridge.md @@ -51,6 +51,7 @@ auth0 logs streams create eventbridge [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_eventgrid.md b/docs/auth0_logs_streams_create_eventgrid.md index 0c9d1794c..4b24ad31c 100644 --- a/docs/auth0_logs_streams_create_eventgrid.md +++ b/docs/auth0_logs_streams_create_eventgrid.md @@ -53,6 +53,7 @@ auth0 logs streams create eventgrid [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_http.md b/docs/auth0_logs_streams_create_http.md index 5680c171a..03ca11c7f 100644 --- a/docs/auth0_logs_streams_create_http.md +++ b/docs/auth0_logs_streams_create_http.md @@ -55,6 +55,7 @@ auth0 logs streams create http [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_splunk.md b/docs/auth0_logs_streams_create_splunk.md index 38575af46..831bfec19 100644 --- a/docs/auth0_logs_streams_create_splunk.md +++ b/docs/auth0_logs_streams_create_splunk.md @@ -55,6 +55,7 @@ auth0 logs streams create splunk [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_create_sumo.md b/docs/auth0_logs_streams_create_sumo.md index 59e295168..0b50cc500 100644 --- a/docs/auth0_logs_streams_create_sumo.md +++ b/docs/auth0_logs_streams_create_sumo.md @@ -49,6 +49,7 @@ auth0 logs streams create sumo [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_delete.md b/docs/auth0_logs_streams_delete.md index a2bae1d57..75f89b014 100644 --- a/docs/auth0_logs_streams_delete.md +++ b/docs/auth0_logs_streams_delete.md @@ -38,6 +38,7 @@ auth0 logs streams delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_list.md b/docs/auth0_logs_streams_list.md index f9983e875..6231c90a7 100644 --- a/docs/auth0_logs_streams_list.md +++ b/docs/auth0_logs_streams_list.md @@ -35,6 +35,7 @@ auth0 logs streams list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_open.md b/docs/auth0_logs_streams_open.md index 71582cecd..90a2d4bbf 100644 --- a/docs/auth0_logs_streams_open.md +++ b/docs/auth0_logs_streams_open.md @@ -25,6 +25,7 @@ auth0 logs streams open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_show.md b/docs/auth0_logs_streams_show.md index 66acd7a6e..9f16d9b5c 100644 --- a/docs/auth0_logs_streams_show.md +++ b/docs/auth0_logs_streams_show.md @@ -33,6 +33,7 @@ auth0 logs streams show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_datadog.md b/docs/auth0_logs_streams_update_datadog.md index a96823fae..ba086e806 100644 --- a/docs/auth0_logs_streams_update_datadog.md +++ b/docs/auth0_logs_streams_update_datadog.md @@ -51,6 +51,7 @@ auth0 logs streams update datadog [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_eventbridge.md b/docs/auth0_logs_streams_update_eventbridge.md index 820f9bb4c..720575771 100644 --- a/docs/auth0_logs_streams_update_eventbridge.md +++ b/docs/auth0_logs_streams_update_eventbridge.md @@ -48,6 +48,7 @@ auth0 logs streams update eventbridge [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_eventgrid.md b/docs/auth0_logs_streams_update_eventgrid.md index 0aa54c857..295df4f8b 100644 --- a/docs/auth0_logs_streams_update_eventgrid.md +++ b/docs/auth0_logs_streams_update_eventgrid.md @@ -47,6 +47,7 @@ auth0 logs streams update eventgrid [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_http.md b/docs/auth0_logs_streams_update_http.md index baa48f543..5bedcaacc 100644 --- a/docs/auth0_logs_streams_update_http.md +++ b/docs/auth0_logs_streams_update_http.md @@ -55,6 +55,7 @@ auth0 logs streams update http [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_splunk.md b/docs/auth0_logs_streams_update_splunk.md index 6f036c033..f5ff94f79 100644 --- a/docs/auth0_logs_streams_update_splunk.md +++ b/docs/auth0_logs_streams_update_splunk.md @@ -55,6 +55,7 @@ auth0 logs streams update splunk [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_streams_update_sumo.md b/docs/auth0_logs_streams_update_sumo.md index 2a696fc05..9decb2ef3 100644 --- a/docs/auth0_logs_streams_update_sumo.md +++ b/docs/auth0_logs_streams_update_sumo.md @@ -49,6 +49,7 @@ auth0 logs streams update sumo [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_logs_tail.md b/docs/auth0_logs_tail.md index a804d93a6..54a1e51b7 100644 --- a/docs/auth0_logs_tail.md +++ b/docs/auth0_logs_tail.md @@ -37,6 +37,7 @@ auth0 logs tail [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_network-acl_create.md b/docs/auth0_network-acl_create.md index 26db020de..aa771d79c 100644 --- a/docs/auth0_network-acl_create.md +++ b/docs/auth0_network-acl_create.md @@ -53,6 +53,7 @@ auth0 network-acl create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_network-acl_delete.md b/docs/auth0_network-acl_delete.md index febab187c..c24a6b203 100644 --- a/docs/auth0_network-acl_delete.md +++ b/docs/auth0_network-acl_delete.md @@ -37,6 +37,7 @@ auth0 network-acl delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_network-acl_list.md b/docs/auth0_network-acl_list.md index ed1c885c4..d5b7a7f5e 100644 --- a/docs/auth0_network-acl_list.md +++ b/docs/auth0_network-acl_list.md @@ -32,6 +32,7 @@ auth0 network-acl list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_network-acl_show.md b/docs/auth0_network-acl_show.md index 6150b999f..573ea3e47 100644 --- a/docs/auth0_network-acl_show.md +++ b/docs/auth0_network-acl_show.md @@ -31,6 +31,7 @@ auth0 network-acl show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_network-acl_update.md b/docs/auth0_network-acl_update.md index 9a2e32de7..f23e117c1 100644 --- a/docs/auth0_network-acl_update.md +++ b/docs/auth0_network-acl_update.md @@ -52,6 +52,7 @@ auth0 network-acl update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_create.md b/docs/auth0_orgs_create.md index 632f3027a..9f9c34403 100644 --- a/docs/auth0_orgs_create.md +++ b/docs/auth0_orgs_create.md @@ -44,6 +44,7 @@ auth0 orgs create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_delete.md b/docs/auth0_orgs_delete.md index 251f87257..65f431217 100644 --- a/docs/auth0_orgs_delete.md +++ b/docs/auth0_orgs_delete.md @@ -38,6 +38,7 @@ auth0 orgs delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_invitations_create.md b/docs/auth0_orgs_invitations_create.md index b957ed27d..d800a45ff 100644 --- a/docs/auth0_orgs_invitations_create.md +++ b/docs/auth0_orgs_invitations_create.md @@ -49,6 +49,7 @@ auth0 orgs invitations create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_invitations_delete.md b/docs/auth0_orgs_invitations_delete.md index e81451492..8e33e6967 100644 --- a/docs/auth0_orgs_invitations_delete.md +++ b/docs/auth0_orgs_invitations_delete.md @@ -39,6 +39,7 @@ auth0 orgs invitations delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_invitations_list.md b/docs/auth0_orgs_invitations_list.md index a293cb426..3b2eb14ed 100644 --- a/docs/auth0_orgs_invitations_list.md +++ b/docs/auth0_orgs_invitations_list.md @@ -42,6 +42,7 @@ auth0 orgs invitations list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_invitations_show.md b/docs/auth0_orgs_invitations_show.md index 1eefc72b3..af11a6d09 100644 --- a/docs/auth0_orgs_invitations_show.md +++ b/docs/auth0_orgs_invitations_show.md @@ -40,6 +40,7 @@ auth0 orgs invitations show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_list.md b/docs/auth0_orgs_list.md index 8225fce23..7ff72f12e 100644 --- a/docs/auth0_orgs_list.md +++ b/docs/auth0_orgs_list.md @@ -37,6 +37,7 @@ auth0 orgs list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_members_list.md b/docs/auth0_orgs_members_list.md index 02a6ec7c5..0b8b9e7fc 100644 --- a/docs/auth0_orgs_members_list.md +++ b/docs/auth0_orgs_members_list.md @@ -37,6 +37,7 @@ auth0 orgs members list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_open.md b/docs/auth0_orgs_open.md index 96acd2676..655236b0f 100644 --- a/docs/auth0_orgs_open.md +++ b/docs/auth0_orgs_open.md @@ -25,6 +25,7 @@ auth0 orgs open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_roles_list.md b/docs/auth0_orgs_roles_list.md index c29499a6c..4fdcc778f 100644 --- a/docs/auth0_orgs_roles_list.md +++ b/docs/auth0_orgs_roles_list.md @@ -37,6 +37,7 @@ auth0 orgs roles list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_roles_members_list.md b/docs/auth0_orgs_roles_members_list.md index 22577ffc8..61330b689 100644 --- a/docs/auth0_orgs_roles_members_list.md +++ b/docs/auth0_orgs_roles_members_list.md @@ -40,6 +40,7 @@ auth0 orgs roles members list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_show.md b/docs/auth0_orgs_show.md index 28b52f677..2d7421e22 100644 --- a/docs/auth0_orgs_show.md +++ b/docs/auth0_orgs_show.md @@ -33,6 +33,7 @@ auth0 orgs show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_orgs_update.md b/docs/auth0_orgs_update.md index da7b8b099..cdf9c8484 100644 --- a/docs/auth0_orgs_update.md +++ b/docs/auth0_orgs_update.md @@ -42,6 +42,7 @@ auth0 orgs update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_phone_provider_create.md b/docs/auth0_phone_provider_create.md index afe25de80..ba749ac06 100644 --- a/docs/auth0_phone_provider_create.md +++ b/docs/auth0_phone_provider_create.md @@ -43,6 +43,7 @@ auth0 phone provider create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_phone_provider_delete.md b/docs/auth0_phone_provider_delete.md index b4c50ccc0..0db701359 100644 --- a/docs/auth0_phone_provider_delete.md +++ b/docs/auth0_phone_provider_delete.md @@ -37,6 +37,7 @@ auth0 phone provider rm --force ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_phone_provider_list.md b/docs/auth0_phone_provider_list.md index a6ac1fde0..cfcfea7d6 100644 --- a/docs/auth0_phone_provider_list.md +++ b/docs/auth0_phone_provider_list.md @@ -35,6 +35,7 @@ auth0 phone provider list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_phone_provider_show.md b/docs/auth0_phone_provider_show.md index db5b02786..b39b9de83 100644 --- a/docs/auth0_phone_provider_show.md +++ b/docs/auth0_phone_provider_show.md @@ -32,6 +32,7 @@ auth0 phone provider show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_phone_provider_update.md b/docs/auth0_phone_provider_update.md index 88bff4aec..f8557ff91 100644 --- a/docs/auth0_phone_provider_update.md +++ b/docs/auth0_phone_provider_update.md @@ -46,6 +46,7 @@ auth0 phone provider update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_bot-detection_show.md b/docs/auth0_protection_bot-detection_show.md index 36e358479..9aa4de1db 100644 --- a/docs/auth0_protection_bot-detection_show.md +++ b/docs/auth0_protection_bot-detection_show.md @@ -32,6 +32,7 @@ auth0 protection bot-detection show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_bot-detection_update.md b/docs/auth0_protection_bot-detection_update.md index 6720bd588..019816819 100644 --- a/docs/auth0_protection_bot-detection_update.md +++ b/docs/auth0_protection_bot-detection_update.md @@ -40,6 +40,7 @@ auth0 protection bot-detection update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_breached-password-detection_show.md b/docs/auth0_protection_breached-password-detection_show.md index 8f14b20ac..d9ffc306b 100644 --- a/docs/auth0_protection_breached-password-detection_show.md +++ b/docs/auth0_protection_breached-password-detection_show.md @@ -31,6 +31,7 @@ auth0 protection breached-password-detection show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_breached-password-detection_update.md b/docs/auth0_protection_breached-password-detection_update.md index f32c622cc..cd777f9a4 100644 --- a/docs/auth0_protection_breached-password-detection_update.md +++ b/docs/auth0_protection_breached-password-detection_update.md @@ -39,6 +39,7 @@ auth0 protection breached-password-detection update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_brute-force-protection_show.md b/docs/auth0_protection_brute-force-protection_show.md index 2a79e7781..8b85b7c56 100644 --- a/docs/auth0_protection_brute-force-protection_show.md +++ b/docs/auth0_protection_brute-force-protection_show.md @@ -31,6 +31,7 @@ auth0 protection brute-force-protection show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_brute-force-protection_update.md b/docs/auth0_protection_brute-force-protection_update.md index 89ddbc436..644ab12f6 100644 --- a/docs/auth0_protection_brute-force-protection_update.md +++ b/docs/auth0_protection_brute-force-protection_update.md @@ -41,6 +41,7 @@ auth0 protection brute-force-protection update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_suspicious-ip-throttling_ips_check.md b/docs/auth0_protection_suspicious-ip-throttling_ips_check.md index 4db72dd2e..bc01d0093 100644 --- a/docs/auth0_protection_suspicious-ip-throttling_ips_check.md +++ b/docs/auth0_protection_suspicious-ip-throttling_ips_check.md @@ -26,6 +26,7 @@ auth0 protection suspicious-ip-throttling ips check [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_suspicious-ip-throttling_ips_unblock.md b/docs/auth0_protection_suspicious-ip-throttling_ips_unblock.md index ebc37c58a..d71e08476 100644 --- a/docs/auth0_protection_suspicious-ip-throttling_ips_unblock.md +++ b/docs/auth0_protection_suspicious-ip-throttling_ips_unblock.md @@ -26,6 +26,7 @@ auth0 protection suspicious-ip-throttling ips unblock [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_suspicious-ip-throttling_show.md b/docs/auth0_protection_suspicious-ip-throttling_show.md index 0de32471f..5f6134a39 100644 --- a/docs/auth0_protection_suspicious-ip-throttling_show.md +++ b/docs/auth0_protection_suspicious-ip-throttling_show.md @@ -31,6 +31,7 @@ auth0 protection suspicious-ip-throttling show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_protection_suspicious-ip-throttling_update.md b/docs/auth0_protection_suspicious-ip-throttling_update.md index 2caa9bbf5..6d407b33e 100644 --- a/docs/auth0_protection_suspicious-ip-throttling_update.md +++ b/docs/auth0_protection_suspicious-ip-throttling_update.md @@ -41,6 +41,7 @@ auth0 protection suspicious-ip-throttling update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_quickstarts_download.md b/docs/auth0_quickstarts_download.md index ea55fbbd4..229dc8ef4 100644 --- a/docs/auth0_quickstarts_download.md +++ b/docs/auth0_quickstarts_download.md @@ -35,6 +35,7 @@ auth0 quickstarts download [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_quickstarts_list.md b/docs/auth0_quickstarts_list.md index 8213dbbf3..d58009588 100644 --- a/docs/auth0_quickstarts_list.md +++ b/docs/auth0_quickstarts_list.md @@ -37,6 +37,7 @@ auth0 quickstarts list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_quickstarts_setup.md b/docs/auth0_quickstarts_setup.md index 7caf825e4..788657d10 100644 --- a/docs/auth0_quickstarts_setup.md +++ b/docs/auth0_quickstarts_setup.md @@ -66,6 +66,7 @@ auth0 quickstarts setup [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_create.md b/docs/auth0_roles_create.md index 98cb24053..f80f0f11b 100644 --- a/docs/auth0_roles_create.md +++ b/docs/auth0_roles_create.md @@ -39,6 +39,7 @@ auth0 roles create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_delete.md b/docs/auth0_roles_delete.md index 915279be8..9170b5133 100644 --- a/docs/auth0_roles_delete.md +++ b/docs/auth0_roles_delete.md @@ -38,6 +38,7 @@ auth0 roles delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_list.md b/docs/auth0_roles_list.md index 82184f2d2..5eea77b93 100644 --- a/docs/auth0_roles_list.md +++ b/docs/auth0_roles_list.md @@ -37,6 +37,7 @@ auth0 roles list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_permissions_add.md b/docs/auth0_roles_permissions_add.md index a73fa04a2..d8fe4c1a4 100644 --- a/docs/auth0_roles_permissions_add.md +++ b/docs/auth0_roles_permissions_add.md @@ -36,6 +36,7 @@ auth0 roles permissions add [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_permissions_list.md b/docs/auth0_roles_permissions_list.md index 802852bb1..2f41673ce 100644 --- a/docs/auth0_roles_permissions_list.md +++ b/docs/auth0_roles_permissions_list.md @@ -37,6 +37,7 @@ auth0 roles permissions list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_permissions_remove.md b/docs/auth0_roles_permissions_remove.md index 4afe52009..d1f4b18ab 100644 --- a/docs/auth0_roles_permissions_remove.md +++ b/docs/auth0_roles_permissions_remove.md @@ -35,6 +35,7 @@ auth0 roles permissions remove [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_show.md b/docs/auth0_roles_show.md index 73047dd0d..984f366b2 100644 --- a/docs/auth0_roles_show.md +++ b/docs/auth0_roles_show.md @@ -33,6 +33,7 @@ auth0 roles show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_roles_update.md b/docs/auth0_roles_update.md index 380d5ee94..29358e9b6 100644 --- a/docs/auth0_roles_update.md +++ b/docs/auth0_roles_update.md @@ -40,6 +40,7 @@ auth0 roles update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_create.md b/docs/auth0_rules_create.md index 729bc3b64..da1b87128 100644 --- a/docs/auth0_rules_create.md +++ b/docs/auth0_rules_create.md @@ -47,6 +47,7 @@ auth0 rules create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_delete.md b/docs/auth0_rules_delete.md index cb72e58a0..210222400 100644 --- a/docs/auth0_rules_delete.md +++ b/docs/auth0_rules_delete.md @@ -40,6 +40,7 @@ auth0 rules delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_disable.md b/docs/auth0_rules_disable.md index 4ef10650e..1c198887d 100644 --- a/docs/auth0_rules_disable.md +++ b/docs/auth0_rules_disable.md @@ -35,6 +35,7 @@ auth0 rules disable [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_enable.md b/docs/auth0_rules_enable.md index a66c451fd..aba0a8a7f 100644 --- a/docs/auth0_rules_enable.md +++ b/docs/auth0_rules_enable.md @@ -35,6 +35,7 @@ auth0 rules enable [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_list.md b/docs/auth0_rules_list.md index f316bc65b..f3a0da288 100644 --- a/docs/auth0_rules_list.md +++ b/docs/auth0_rules_list.md @@ -37,6 +37,7 @@ auth0 rules list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_show.md b/docs/auth0_rules_show.md index 316660419..a60ba2e33 100644 --- a/docs/auth0_rules_show.md +++ b/docs/auth0_rules_show.md @@ -35,6 +35,7 @@ auth0 rules show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_rules_update.md b/docs/auth0_rules_update.md index 2844d9469..2a4cdce42 100644 --- a/docs/auth0_rules_update.md +++ b/docs/auth0_rules_update.md @@ -46,6 +46,7 @@ auth0 rules update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenant-settings_show.md b/docs/auth0_tenant-settings_show.md index d130ac1f5..058bce770 100644 --- a/docs/auth0_tenant-settings_show.md +++ b/docs/auth0_tenant-settings_show.md @@ -32,6 +32,7 @@ auth0 tenant-settings show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenant-settings_update_set.md b/docs/auth0_tenant-settings_update_set.md index 9d2f43e65..8efba774a 100644 --- a/docs/auth0_tenant-settings_update_set.md +++ b/docs/auth0_tenant-settings_update_set.md @@ -30,6 +30,7 @@ auth0 tenant-settings update set flags.enable_client_connections mtls.enable_end ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenant-settings_update_unset.md b/docs/auth0_tenant-settings_update_unset.md index 980133d49..36e900e97 100644 --- a/docs/auth0_tenant-settings_update_unset.md +++ b/docs/auth0_tenant-settings_update_unset.md @@ -30,6 +30,7 @@ auth0 tenant-settings update unset customize_mfa_in_postlogin_action flags.enabl ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenants_list.md b/docs/auth0_tenants_list.md index d82e4f934..181642a7a 100644 --- a/docs/auth0_tenants_list.md +++ b/docs/auth0_tenants_list.md @@ -35,6 +35,7 @@ auth0 tenants list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenants_open.md b/docs/auth0_tenants_open.md index d8706d35d..e1d8478e5 100644 --- a/docs/auth0_tenants_open.md +++ b/docs/auth0_tenants_open.md @@ -26,6 +26,7 @@ auth0 tenants open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_tenants_use.md b/docs/auth0_tenants_use.md index 82979c56d..6cfc50dcf 100644 --- a/docs/auth0_tenants_use.md +++ b/docs/auth0_tenants_use.md @@ -26,6 +26,7 @@ auth0 tenants use [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_terraform_generate.md b/docs/auth0_terraform_generate.md index e309e77fd..7b1a6796b 100644 --- a/docs/auth0_terraform_generate.md +++ b/docs/auth0_terraform_generate.md @@ -41,6 +41,7 @@ auth0 terraform generate [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_test_login.md b/docs/auth0_test_login.md index 2446a7589..eb7285cbf 100644 --- a/docs/auth0_test_login.md +++ b/docs/auth0_test_login.md @@ -50,6 +50,7 @@ auth0 test login [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_test_token.md b/docs/auth0_test_token.md index 1a24d2a72..1a21c11c6 100644 --- a/docs/auth0_test_token.md +++ b/docs/auth0_test_token.md @@ -45,6 +45,7 @@ auth0 test token [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_token-exchange_create.md b/docs/auth0_token-exchange_create.md index c5f926bdf..fe60664ef 100644 --- a/docs/auth0_token-exchange_create.md +++ b/docs/auth0_token-exchange_create.md @@ -43,6 +43,7 @@ auth0 token-exchange create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_token-exchange_delete.md b/docs/auth0_token-exchange_delete.md index feb9c93f5..2da9de9c3 100644 --- a/docs/auth0_token-exchange_delete.md +++ b/docs/auth0_token-exchange_delete.md @@ -38,6 +38,7 @@ auth0 token-exchange delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_token-exchange_list.md b/docs/auth0_token-exchange_list.md index 84062c6a6..3edb1db21 100644 --- a/docs/auth0_token-exchange_list.md +++ b/docs/auth0_token-exchange_list.md @@ -35,6 +35,7 @@ auth0 token-exchange list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_token-exchange_show.md b/docs/auth0_token-exchange_show.md index 81149ffc5..7e42d0022 100644 --- a/docs/auth0_token-exchange_show.md +++ b/docs/auth0_token-exchange_show.md @@ -33,6 +33,7 @@ auth0 token-exchange show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_token-exchange_update.md b/docs/auth0_token-exchange_update.md index 3f503c888..bae08b189 100644 --- a/docs/auth0_token-exchange_update.md +++ b/docs/auth0_token-exchange_update.md @@ -43,6 +43,7 @@ auth0 token-exchange update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_customize.md b/docs/auth0_universal-login_customize.md index 7eac34983..9c9cc7922 100644 --- a/docs/auth0_universal-login_customize.md +++ b/docs/auth0_universal-login_customize.md @@ -48,6 +48,7 @@ auth0 universal-login customize [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_prompts_show.md b/docs/auth0_universal-login_prompts_show.md index fa4765d9f..c6e591e9f 100644 --- a/docs/auth0_universal-login_prompts_show.md +++ b/docs/auth0_universal-login_prompts_show.md @@ -32,6 +32,7 @@ auth0 universal-login prompts show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_prompts_update.md b/docs/auth0_universal-login_prompts_update.md index 4a8c27549..715e0f58c 100644 --- a/docs/auth0_universal-login_prompts_update.md +++ b/docs/auth0_universal-login_prompts_update.md @@ -31,6 +31,7 @@ auth0 universal-login prompts update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_show.md b/docs/auth0_universal-login_show.md index e3361cb81..c8def5d9f 100644 --- a/docs/auth0_universal-login_show.md +++ b/docs/auth0_universal-login_show.md @@ -33,6 +33,7 @@ auth0 universal-login show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_switch.md b/docs/auth0_universal-login_switch.md index b40b035a3..9809d92a1 100644 --- a/docs/auth0_universal-login_switch.md +++ b/docs/auth0_universal-login_switch.md @@ -44,6 +44,7 @@ auth0 universal-login switch [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_templates_show.md b/docs/auth0_universal-login_templates_show.md index 3e9ad17d6..34716ee65 100644 --- a/docs/auth0_universal-login_templates_show.md +++ b/docs/auth0_universal-login_templates_show.md @@ -25,6 +25,7 @@ auth0 universal-login templates show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_templates_update.md b/docs/auth0_universal-login_templates_update.md index f409246a9..054aeeca5 100644 --- a/docs/auth0_universal-login_templates_update.md +++ b/docs/auth0_universal-login_templates_update.md @@ -31,6 +31,7 @@ auth0 universal-login templates update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_universal-login_update.md b/docs/auth0_universal-login_update.md index 3f0a25315..1b8255386 100644 --- a/docs/auth0_universal-login_update.md +++ b/docs/auth0_universal-login_update.md @@ -43,6 +43,7 @@ auth0 universal-login update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_blocks_list.md b/docs/auth0_users_blocks_list.md index dc686920c..18b1f83ec 100644 --- a/docs/auth0_users_blocks_list.md +++ b/docs/auth0_users_blocks_list.md @@ -36,6 +36,7 @@ auth0 users blocks list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_blocks_unblock.md b/docs/auth0_users_blocks_unblock.md index 134b26c3c..3496ec6bc 100644 --- a/docs/auth0_users_blocks_unblock.md +++ b/docs/auth0_users_blocks_unblock.md @@ -27,6 +27,7 @@ auth0 users blocks unblock [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_create.md b/docs/auth0_users_create.md index 05011899e..b4d0c8d79 100644 --- a/docs/auth0_users_create.md +++ b/docs/auth0_users_create.md @@ -50,6 +50,7 @@ auth0 users create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_delete.md b/docs/auth0_users_delete.md index 3d6a6804c..bd66305d7 100644 --- a/docs/auth0_users_delete.md +++ b/docs/auth0_users_delete.md @@ -38,6 +38,7 @@ auth0 users delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_import.md b/docs/auth0_users_import.md index 5558e657e..21b12e5fb 100644 --- a/docs/auth0_users_import.md +++ b/docs/auth0_users_import.md @@ -47,6 +47,7 @@ auth0 users import [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_open.md b/docs/auth0_users_open.md index 81a35232b..1dd2065db 100644 --- a/docs/auth0_users_open.md +++ b/docs/auth0_users_open.md @@ -25,6 +25,7 @@ auth0 users open [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_roles_assign.md b/docs/auth0_users_roles_assign.md index 53e158ab5..b407445a2 100644 --- a/docs/auth0_users_roles_assign.md +++ b/docs/auth0_users_roles_assign.md @@ -34,6 +34,7 @@ auth0 users roles assign [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_roles_remove.md b/docs/auth0_users_roles_remove.md index 9068d18e2..0f7ca5fdd 100644 --- a/docs/auth0_users_roles_remove.md +++ b/docs/auth0_users_roles_remove.md @@ -34,6 +34,7 @@ auth0 users roles remove [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_roles_show.md b/docs/auth0_users_roles_show.md index c5e4aeb28..4f9e86ec6 100644 --- a/docs/auth0_users_roles_show.md +++ b/docs/auth0_users_roles_show.md @@ -37,6 +37,7 @@ auth0 users roles show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_search-by-email.md b/docs/auth0_users_search-by-email.md index 11f4697aa..2a2849f0e 100644 --- a/docs/auth0_users_search-by-email.md +++ b/docs/auth0_users_search-by-email.md @@ -34,6 +34,7 @@ auth0 users search-by-email [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_search.md b/docs/auth0_users_search.md index 465fdffb7..00cb785cc 100644 --- a/docs/auth0_users_search.md +++ b/docs/auth0_users_search.md @@ -45,6 +45,7 @@ auth0 users search [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_show.md b/docs/auth0_users_show.md index 5d5e915a1..918dc5ec1 100644 --- a/docs/auth0_users_show.md +++ b/docs/auth0_users_show.md @@ -33,6 +33,7 @@ auth0 users show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_update.md b/docs/auth0_users_update.md index 517f142fc..4a63ab468 100644 --- a/docs/auth0_users_update.md +++ b/docs/auth0_users_update.md @@ -53,6 +53,7 @@ auth0 users update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 2b0b3c1d3..54a244362 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -48,6 +48,7 @@ type cli struct { force bool noInput bool noColor bool + agentMode bool executedCommandPath string Config config.Config diff --git a/internal/cli/root.go b/internal/cli/root.go index 090dcacba..79dfa19f7 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -6,6 +6,7 @@ import ( "fmt" "os" "os/signal" + "strconv" "strings" "time" "unicode" @@ -111,6 +112,8 @@ func buildRootCmd(cli *cli) *cobra.Command { PersistentPreRunE: func(cmd *cobra.Command, args []string) error { cli.executedCommandPath = cmd.CommandPath() + applyAgentModeDefaults(cli, cmd) + ansi.Initialize(cli.noColor) prepareInteractivity(cmd) cli.configureRenderer() @@ -149,6 +152,72 @@ func commandRequiresAuthentication(invokedCommandName string) bool { return true } +// agentModeEnvVar toggles agent mode explicitly, overriding auto-detection. +// Set it to "false" to opt out even when running inside a detected agent. +const agentModeEnvVar = "AUTH0_AGENT_MODE" + +// applyAgentModeDefaults resolves agent mode and, when enabled, sets structured +// JSON output, disables interactive prompts, and disables color codes. It only +// sets a default when the corresponding flag was not explicitly passed, so +// explicit flags always win. +func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { + if !resolveAgentMode(cmd, os.Getenv, iostream.IsInputTerminal() && iostream.IsOutputTerminal()) { + return + } + + cli.agentMode = true + + if !anyFlagChanged(cmd, "json", "json-compact", "csv") { + cli.json = true + } + if !flagChanged(cmd, "no-input") { + cli.noInput = true + } + if !flagChanged(cmd, "no-color") { + cli.noColor = true + } + + cli.renderer.Infof("Agent mode on: JSON output, prompts and colors off. Disable with --agent-mode=false or %s=false.", agentModeEnvVar) +} + +// resolveAgentMode decides whether agent mode is active. Precedence: +// explicit AUTH0_AGENT_MODE env value, then the --agent-mode flag, then +// auto-detection of a real (non-human, non-unknown) agent client. +func resolveAgentMode(cmd *cobra.Command, getEnv func(string) string, interactive bool) bool { + if raw := strings.TrimSpace(getEnv(agentModeEnvVar)); raw != "" { + if enabled, err := strconv.ParseBool(raw); err == nil { + return enabled + } + } + + if flagChanged(cmd, "agent-mode") { + if enabled, err := cmd.Flags().GetBool("agent-mode"); err == nil { + return enabled + } + } + + switch detectAgent(interactive) { + case "human", "unknown": + return false + default: + return true + } +} + +func flagChanged(cmd *cobra.Command, name string) bool { + f := cmd.Flags().Lookup(name) + return f != nil && f.Changed +} + +func anyFlagChanged(cmd *cobra.Command, names ...string) bool { + for _, name := range names { + if flagChanged(cmd, name) { + return true + } + } + return false +} + func addPersistentFlags(rootCmd *cobra.Command, cli *cli) { rootCmd.PersistentFlags().StringVar(&cli.tenant, "tenant", cli.Config.DefaultTenant, "Specific tenant to use.") @@ -161,6 +230,10 @@ func addPersistentFlags(rootCmd *cobra.Command, cli *cli) { rootCmd.PersistentFlags().BoolVar(&cli.noColor, "no-color", false, "Disable colors.") + + rootCmd.PersistentFlags().BoolVar(&cli.agentMode, + "agent-mode", false, + "Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable.") } func addSubCommands(rootCmd *cobra.Command, cli *cli) { diff --git a/internal/cli/root_test.go b/internal/cli/root_test.go index fed6a08a4..18b7f08d8 100644 --- a/internal/cli/root_test.go +++ b/internal/cli/root_test.go @@ -4,9 +4,11 @@ import ( "errors" "fmt" "net/http" + "strconv" "testing" "github.com/auth0/go-auth0/management" + "github.com/spf13/cobra" "github.com/stretchr/testify/assert" "github.com/auth0/auth0-cli/internal/config" @@ -187,3 +189,47 @@ func TestMergeProperties(t *testing.T) { assert.Equal(t, "false", merged["success"]) assert.Equal(t, "auth", merged["error_class"]) } + +func TestResolveAgentMode(t *testing.T) { + // The newCmd helper builds a command carrying the --agent-mode flag, + // optionally marking it as explicitly set to a given value. + newCmd := func(flagSet bool, flagValue bool) *cobra.Command { + cmd := &cobra.Command{Use: "list"} + cmd.Flags().Bool("agent-mode", false, "") + if flagSet { + _ = cmd.Flags().Set("agent-mode", strconv.FormatBool(flagValue)) + } + return cmd + } + + envStub := func(value string) func(string) string { + return func(key string) string { + if key == agentModeEnvVar { + return value + } + return "" + } + } + + tests := []struct { + name string + env string + flagSet bool + flagValue bool + expected bool + }{ + {name: "env true wins over flag false", env: "true", flagSet: true, flagValue: false, expected: true}, + {name: "env false wins over flag true", env: "false", flagSet: true, flagValue: true, expected: false}, + {name: "invalid env falls through to flag", env: "notabool", flagSet: true, flagValue: true, expected: true}, + {name: "flag true when env unset", env: "", flagSet: true, flagValue: true, expected: true}, + {name: "flag false when env unset", env: "", flagSet: true, flagValue: false, expected: false}, + } + + for _, test := range tests { + t.Run(test.name, func(t *testing.T) { + cmd := newCmd(test.flagSet, test.flagValue) + // Interactive is true so the detectAgent fallback (unreached here) would be "human". + assert.Equal(t, test.expected, resolveAgentMode(cmd, envStub(test.env), true)) + }) + } +} From 667e0ef9adbeba7295ec3c9f8b82ae60330929d3 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Mon, 17 Aug 2026 01:33:20 +0530 Subject: [PATCH 2/6] feat: enhance agent mode with JSON output and non-interactive flags --- README.md | 10 +++++ docs/auth0_tenant-settings_update_set.md | 7 ++++ docs/auth0_tenant-settings_update_unset.md | 7 ++++ internal/cli/actions.go | 4 ++ internal/cli/api.go | 4 ++ internal/cli/apis.go | 4 ++ internal/cli/apps.go | 4 ++ internal/cli/cli.go | 8 ++++ internal/cli/custom_domains.go | 4 ++ internal/cli/email_provider.go | 4 ++ internal/cli/event_streams.go | 4 ++ internal/cli/log_streams.go | 4 ++ internal/cli/network_acl.go | 8 ++++ internal/cli/organizations.go | 8 ++++ internal/cli/phone_provider.go | 4 ++ internal/cli/roles.go | 4 ++ internal/cli/root.go | 48 +++++++++++++--------- internal/cli/root_test.go | 26 +++++------- internal/cli/rules.go | 4 ++ internal/cli/tenant_settings.go | 12 +++++- internal/cli/token_exchange.go | 4 ++ internal/cli/users.go | 4 ++ internal/display/tenant-settings.go | 11 +++++ 23 files changed, 159 insertions(+), 38 deletions(-) diff --git a/README.md b/README.md index d6bf9715b..e408c878d 100644 --- a/README.md +++ b/README.md @@ -377,6 +377,16 @@ cp -r agent-skills/plugins/auth0/skills/auth0 ~/.openclaw/skills/ > **Note:** The `auth0` binary must be installed and available on your `$PATH` for agents to use the CLI guidance in this skill. +### Agent Mode + +For AI agents and automation, **agent mode** makes output machine-friendly: structured JSON, no interactive prompts, and no color codes. + +- **Env var:** `AUTH0_AGENT_MODE=true` +- **Flag:** `--agent-mode` +- **Auto-enabled** when a known agent (Claude Code, Cursor, Codex, Gemini, etc.) is detected. + +Precedence: `--agent-mode` flag > `AUTH0_AGENT_MODE` env var > auto-detection (set `--agent-mode=false` to opt out). Destructive commands still require `--force`; without it (and with prompts disabled) they fail with an error rather than proceeding. + ## Anonymized Analytics Disclosure Anonymized data points are collected during the use of this CLI. This data includes the CLI version, operating system, timestamp, and other technical details that do not personally identify you. diff --git a/docs/auth0_tenant-settings_update_set.md b/docs/auth0_tenant-settings_update_set.md index 8efba774a..fa3f221c0 100644 --- a/docs/auth0_tenant-settings_update_set.md +++ b/docs/auth0_tenant-settings_update_set.md @@ -22,9 +22,16 @@ auth0 tenant-settings update set [flags] auth0 tenant-settings update set auth0 tenant-settings update set auth0 tenant-settings update set flags.enable_client_connections mtls.enable_endpoint_aliases pushed_authorization_requests_supported +auth0 tenant-settings update set flags.enable_sso --json ``` +## Flags + +``` + --json Output in json format. + --json-compact Output in compact json format. +``` ## Inherited Flags diff --git a/docs/auth0_tenant-settings_update_unset.md b/docs/auth0_tenant-settings_update_unset.md index 36e900e97..00d9de93d 100644 --- a/docs/auth0_tenant-settings_update_unset.md +++ b/docs/auth0_tenant-settings_update_unset.md @@ -22,9 +22,16 @@ auth0 tenant-settings update unset [flags] auth0 tenant-settings update unset auth0 tenant-settings update unset auth0 tenant-settings update unset customize_mfa_in_postlogin_action flags.enable_pipeline2 +auth0 tenant-settings update unset flags.enable_pipeline2 --json ``` +## Flags + +``` + --json Output in json format. + --json-compact Output in compact json format. +``` ## Inherited Flags diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 292a557c1..49695e275 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -466,6 +466,10 @@ func deleteActionCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/api.go b/internal/cli/api.go index 94e6c1360..af0418b25 100644 --- a/internal/cli/api.go +++ b/internal/cli/api.go @@ -127,6 +127,10 @@ func apiCmdRun(cli *cli, inputs *apiCmdInputs) func(cmd *cobra.Command, args []s return fmt.Errorf("failed to parse command inputs: %w", err) } + if inputs.Method == http.MethodDelete && !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if inputs.Method == http.MethodDelete && !cli.force && canPrompt(cmd) { message := "Are you sure you want to proceed? Deleting is a destructive action." if confirmed := prompt.Confirm(message); !confirmed { diff --git a/internal/cli/apis.go b/internal/cli/apis.go index ab02bf9a3..f9d1405f4 100644 --- a/internal/cli/apis.go +++ b/internal/cli/apis.go @@ -557,6 +557,10 @@ func deleteAPICmd(cli *cli) *cobra.Command { ids = append(ids, args...) } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/apps.go b/internal/cli/apps.go index ee054df31..fec3036c3 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -421,6 +421,10 @@ func deleteAppCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if tenant, _ := cli.Config.GetTenant(cli.tenant); slices.Contains(ids, tenant.ClientID) { cli.renderer.Warnf("Warning: You're about to delete the client used to authenticate the CLI. If deleted, the CLI will cease to operate once the access token has expired.") diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 54a244362..b89fc78dc 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -49,6 +49,7 @@ type cli struct { noInput bool noColor bool agentMode bool + detectedAgent string executedCommandPath string Config config.Config @@ -175,6 +176,13 @@ func canPrompt(cmd *cobra.Command) bool { return iostream.IsInputTerminal() && iostream.IsOutputTerminal() && !noInput } +// errDestructiveNoConfirm is returned when a destructive command cannot show a +// confirmation prompt (e.g. --no-input or agent mode) and --force was not +// passed. Destructive actions fail closed instead of proceeding silently. +var errDestructiveNoConfirm = errors.New( + "this is a destructive command; re-run with --force to proceed without a confirmation prompt", +) + // noLocalFlagSet returns true if no local flags (excluding global flags) are set for the command. func noLocalFlagSet(cmd *cobra.Command) bool { localFlagIsSet := false diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index 3fd37a649..50ee5d4b8 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -437,6 +437,10 @@ func deleteCustomDomainCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/email_provider.go b/internal/cli/email_provider.go index 8103cfe99..9f438936b 100644 --- a/internal/cli/email_provider.go +++ b/internal/cli/email_provider.go @@ -409,6 +409,10 @@ func deleteEmailProviderCmd(cli *cli) *cobra.Command { auth0 email provider delete --force auth0 email provider rm --force`, RunE: func(cmd *cobra.Command, args []string) error { + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/event_streams.go b/internal/cli/event_streams.go index 7b032a9cc..f4f262b7b 100644 --- a/internal/cli/event_streams.go +++ b/internal/cli/event_streams.go @@ -390,6 +390,10 @@ func deleteEventStreamCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/log_streams.go b/internal/cli/log_streams.go index 9d59aec60..f98b5d9f3 100644 --- a/internal/cli/log_streams.go +++ b/internal/cli/log_streams.go @@ -218,6 +218,10 @@ func deleteLogStreamCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/network_acl.go b/internal/cli/network_acl.go index d980f5692..ec0e38801 100644 --- a/internal/cli/network_acl.go +++ b/internal/cli/network_acl.go @@ -966,6 +966,10 @@ Use --all flag to delete all network ACLs at once.`, } // Confirm deletion. + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm(fmt.Sprintf("Are you sure you want to delete ALL %d network ACLs?", len(list))); !confirmed { return nil @@ -991,6 +995,10 @@ Use --all flag to delete all network ACLs at once.`, ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/organizations.go b/internal/cli/organizations.go index 8a365550a..34f594b65 100644 --- a/internal/cli/organizations.go +++ b/internal/cli/organizations.go @@ -523,6 +523,10 @@ func deleteOrganizationCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil @@ -1310,6 +1314,10 @@ func deleteInvitationOrganizationCmd(cli *cli) *cobra.Command { return err } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/phone_provider.go b/internal/cli/phone_provider.go index 923858333..54f656aa9 100644 --- a/internal/cli/phone_provider.go +++ b/internal/cli/phone_provider.go @@ -393,6 +393,10 @@ auth0 phone provider delete --force auth0 phone provider delete auth0 phone provider rm --force`, RunE: func(cmd *cobra.Command, args []string) error { + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/roles.go b/internal/cli/roles.go index b13485b9e..29f790c04 100644 --- a/internal/cli/roles.go +++ b/internal/cli/roles.go @@ -312,6 +312,10 @@ func deleteRoleCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/root.go b/internal/cli/root.go index 43039d65c..d6df20f27 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -118,6 +118,11 @@ func buildRootCmd(cli *cli) *cobra.Command { prepareInteractivity(cmd) cli.configureRenderer() + // Emitted after ansi.Initialize so the notice respects the color setting. + if cli.agentMode { + cli.renderer.Infof("Agent mode on: JSON output, prompts and colors off. Disable with --agent-mode=false.") + } + if !commandRequiresAuthentication(cmd.CommandPath()) { return nil } @@ -152,16 +157,23 @@ func commandRequiresAuthentication(invokedCommandName string) bool { return true } -// agentModeEnvVar toggles agent mode explicitly, overriding auto-detection. -// Set it to "false" to opt out even when running inside a detected agent. +// agentModeEnvVar enables agent mode when set to a truthy value (e.g. 1 or true). +// In agent mode, `--help` emits JSON without needing an explicit --json flag. const agentModeEnvVar = "AUTH0_AGENT_MODE" -// applyAgentModeDefaults resolves agent mode and, when enabled, sets structured -// JSON output, disables interactive prompts, and disables color codes. It only -// sets a default when the corresponding flag was not explicitly passed, so -// explicit flags always win. +// agentClientName resolves detectAgent once per invocation and caches it so +// agent-mode resolution and telemetry share a single lookup. +func (c *cli) agentClientName() string { + if c.detectedAgent == "" { + c.detectedAgent = detectAgent(iostream.IsInputTerminal() && iostream.IsOutputTerminal()) + } + return c.detectedAgent +} + +// applyAgentModeDefaults enables agent mode when resolved, defaulting to JSON +// output with prompts and colors off unless those flags were explicitly set. func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { - if !resolveAgentMode(cmd, os.Getenv, iostream.IsInputTerminal() && iostream.IsOutputTerminal()) { + if !resolveAgentMode(cmd, cli.agentClientName()) { return } @@ -176,27 +188,23 @@ func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { if !flagChanged(cmd, "no-color") { cli.noColor = true } - - cli.renderer.Infof("Agent mode on: JSON output, prompts and colors off. Disable with --agent-mode=false or %s=false.", agentModeEnvVar) } // resolveAgentMode decides whether agent mode is active. Precedence: -// explicit AUTH0_AGENT_MODE env value, then the --agent-mode flag, then -// auto-detection of a real (non-human, non-unknown) agent client. -func resolveAgentMode(cmd *cobra.Command, getEnv func(string) string, interactive bool) bool { - if raw := strings.TrimSpace(getEnv(agentModeEnvVar)); raw != "" { - if enabled, err := strconv.ParseBool(raw); err == nil { - return enabled - } - } - +// an explicit --agent-mode flag (highest), then a truthy AUTH0_AGENT_MODE env +// value, then a detected (non-human, non-unknown) agent client. +func resolveAgentMode(cmd *cobra.Command, agentClient string) bool { if flagChanged(cmd, "agent-mode") { if enabled, err := cmd.Flags().GetBool("agent-mode"); err == nil { return enabled } } - switch detectAgent(interactive) { + if enabled, _ := strconv.ParseBool(strings.TrimSpace(os.Getenv(agentModeEnvVar))); enabled { + return true + } + + switch agentClient { case "human", "unknown": return false default: @@ -355,7 +363,7 @@ func commandTrackingProperties(cli *cli) map[string]string { "no_input": boolString(cli.noInput), "output_format": outputFormatForTracking(cli.renderer), "forced": boolString(cli.force), - "agent_client": detectAgent(interactive), + "agent_client": cli.agentClientName(), "is_api": boolString(isAPICommand(cli.executedCommandPath)), } } diff --git a/internal/cli/root_test.go b/internal/cli/root_test.go index 18b7f08d8..983ecdfbb 100644 --- a/internal/cli/root_test.go +++ b/internal/cli/root_test.go @@ -202,34 +202,28 @@ func TestResolveAgentMode(t *testing.T) { return cmd } - envStub := func(value string) func(string) string { - return func(key string) string { - if key == agentModeEnvVar { - return value - } - return "" - } - } - + // Precedence: flag > env > detection. tests := []struct { name string env string flagSet bool flagValue bool + detected string expected bool }{ - {name: "env true wins over flag false", env: "true", flagSet: true, flagValue: false, expected: true}, - {name: "env false wins over flag true", env: "false", flagSet: true, flagValue: true, expected: false}, - {name: "invalid env falls through to flag", env: "notabool", flagSet: true, flagValue: true, expected: true}, - {name: "flag true when env unset", env: "", flagSet: true, flagValue: true, expected: true}, - {name: "flag false when env unset", env: "", flagSet: true, flagValue: false, expected: false}, + {name: "flag false wins over env true", env: "true", flagSet: true, flagValue: false, detected: "claude-code", expected: false}, + {name: "flag true wins over env false", env: "false", flagSet: true, flagValue: true, detected: "human", expected: true}, + {name: "env truthy enables when flag unset", env: "1", detected: "human", expected: true}, + {name: "detected agent enables when flag and env unset", env: "", detected: "claude-code", expected: true}, + {name: "human is not agent mode", env: "", detected: "human", expected: false}, + {name: "unknown is not agent mode", env: "", detected: "unknown", expected: false}, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { + t.Setenv(agentModeEnvVar, test.env) cmd := newCmd(test.flagSet, test.flagValue) - // Interactive is true so the detectAgent fallback (unreached here) would be "human". - assert.Equal(t, test.expected, resolveAgentMode(cmd, envStub(test.env), true)) + assert.Equal(t, test.expected, resolveAgentMode(cmd, test.detected)) }) } } diff --git a/internal/cli/rules.go b/internal/cli/rules.go index ca617b491..5e89b04db 100644 --- a/internal/cli/rules.go +++ b/internal/cli/rules.go @@ -284,6 +284,10 @@ func deleteRuleCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/tenant_settings.go b/internal/cli/tenant_settings.go index 4e41ac1e7..0fa9301d4 100644 --- a/internal/cli/tenant_settings.go +++ b/internal/cli/tenant_settings.go @@ -72,7 +72,8 @@ func set(cli *cli) *cobra.Command { "To enable non-interactively, supply the flags.", Example: `auth0 tenant-settings update set auth0 tenant-settings update set -auth0 tenant-settings update set flags.enable_client_connections mtls.enable_endpoint_aliases pushed_authorization_requests_supported`, +auth0 tenant-settings update set flags.enable_client_connections mtls.enable_endpoint_aliases pushed_authorization_requests_supported +auth0 tenant-settings update set flags.enable_sso --json`, RunE: func(cmd *cobra.Command, args []string) error { var ( tenant = &management.Tenant{} @@ -104,6 +105,9 @@ auth0 tenant-settings update set flags.enable_client_connections mtls.enable_end }, } + cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.") + cmd.Flags().BoolVar(&cli.jsonCompact, "json-compact", false, "Output in compact json format.") + return cmd } @@ -116,7 +120,8 @@ func unset(cli *cli) *cobra.Command { "To disable non-interactively, supply the flags.", Example: `auth0 tenant-settings update unset auth0 tenant-settings update unset -auth0 tenant-settings update unset customize_mfa_in_postlogin_action flags.enable_pipeline2`, +auth0 tenant-settings update unset customize_mfa_in_postlogin_action flags.enable_pipeline2 +auth0 tenant-settings update unset flags.enable_pipeline2 --json`, RunE: func(cmd *cobra.Command, args []string) error { var ( tenant = &management.Tenant{} @@ -148,6 +153,9 @@ auth0 tenant-settings update unset customize_mfa_in_postlogin_action flags.enabl }, } + cmd.Flags().BoolVar(&cli.json, "json", false, "Output in json format.") + cmd.Flags().BoolVar(&cli.jsonCompact, "json-compact", false, "Output in compact json format.") + return cmd } diff --git a/internal/cli/token_exchange.go b/internal/cli/token_exchange.go index 554e1a818..8ebd911f0 100644 --- a/internal/cli/token_exchange.go +++ b/internal/cli/token_exchange.go @@ -318,6 +318,10 @@ func deleteTokenExchangeProfileCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/users.go b/internal/cli/users.go index fb0955f95..46a507e64 100644 --- a/internal/cli/users.go +++ b/internal/cli/users.go @@ -646,6 +646,10 @@ func deleteUserCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && !canPrompt(cmd) { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/display/tenant-settings.go b/internal/display/tenant-settings.go index 09f86e18c..1559c05d0 100644 --- a/internal/display/tenant-settings.go +++ b/internal/display/tenant-settings.go @@ -81,6 +81,17 @@ func (r *Renderer) TenantSettingsShow(tenant *management.Tenant) { func (r *Renderer) TenantSettingsUpdate(tenant *management.Tenant) { r.Heading("tenant settings updated") + + if r.Format == OutputFormatJSONCompact { + r.JSONCompactResult(tenant) + return + } + + if r.Format == OutputFormatJSON { + r.JSONResult(tenant) + return + } + r.Results(makeTenantSettings(tenant)) } From 25b7c81331816007f7bac33b25c40c1d74557117 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Mon, 17 Aug 2026 15:33:10 +0530 Subject: [PATCH 3/6] feat: refactor agent mode handling and improve JSON help rendering --- internal/cli/commands.go | 4 +- internal/cli/commands_test.go | 11 +++--- internal/cli/root.go | 41 +++++++++----------- internal/cli/root_test.go | 70 +++++++++++++++++++++-------------- 4 files changed, 68 insertions(+), 58 deletions(-) diff --git a/internal/cli/commands.go b/internal/cli/commands.go index 85bb824e9..c90170e54 100644 --- a/internal/cli/commands.go +++ b/internal/cli/commands.go @@ -294,8 +294,8 @@ func extractArguments(cmd *cobra.Command) []string { // flags, so it also works for the root and namespace commands that have no --json // flag of their own. A specific command is described in detail; the root is a // compact overview. -func renderJSONHelpIfRequested(root *cobra.Command, args []string) bool { - if !hasHelpRequest(args) || (!hasJSONRequest(args) && !agentModeEnabled()) { +func renderJSONHelpIfRequested(cli *cli, root *cobra.Command, args []string) bool { + if !hasHelpRequest(args) || (!hasJSONRequest(args) && !cli.agentMode) { return false } diff --git a/internal/cli/commands_test.go b/internal/cli/commands_test.go index 7dc087d8c..198cbb6e7 100644 --- a/internal/cli/commands_test.go +++ b/internal/cli/commands_test.go @@ -227,7 +227,7 @@ func TestRenderJSONHelpIfRequested(t *testing.T) { t.Setenv(agentModeEnvVar, "") var fired bool out := captureOutput(t, func() { - fired = renderJSONHelpIfRequested(root, []string{"apps", "create"}) + fired = renderJSONHelpIfRequested(&cli{}, root, []string{"apps", "create"}) }) assert.False(t, fired) assert.Empty(t, out) @@ -237,7 +237,7 @@ func TestRenderJSONHelpIfRequested(t *testing.T) { t.Setenv(agentModeEnvVar, "") var fired bool out := captureOutput(t, func() { - fired = renderJSONHelpIfRequested(root, []string{"apps", "create", "--help"}) + fired = renderJSONHelpIfRequested(&cli{}, root, []string{"apps", "create", "--help"}) }) assert.False(t, fired) assert.Empty(t, out) @@ -247,7 +247,7 @@ func TestRenderJSONHelpIfRequested(t *testing.T) { t.Setenv(agentModeEnvVar, "") var fired bool out := captureOutput(t, func() { - fired = renderJSONHelpIfRequested(root, []string{"apps", "create", "--help", "--json"}) + fired = renderJSONHelpIfRequested(&cli{}, root, []string{"apps", "create", "--help", "--json"}) }) assert.True(t, fired) @@ -260,10 +260,9 @@ func TestRenderJSONHelpIfRequested(t *testing.T) { }) t.Run("agent mode help needs no --json flag", func(t *testing.T) { - t.Setenv(agentModeEnvVar, "1") var fired bool out := captureOutput(t, func() { - fired = renderJSONHelpIfRequested(root, []string{"apps", "create", "--help"}) + fired = renderJSONHelpIfRequested(&cli{agentMode: true}, root, []string{"apps", "create", "--help"}) }) assert.True(t, fired) @@ -276,7 +275,7 @@ func TestRenderJSONHelpIfRequested(t *testing.T) { t.Setenv(agentModeEnvVar, "") var fired bool out := captureOutput(t, func() { - fired = renderJSONHelpIfRequested(root, []string{"--help", "--json"}) + fired = renderJSONHelpIfRequested(&cli{}, root, []string{"--help", "--json"}) }) assert.True(t, fired) diff --git a/internal/cli/root.go b/internal/cli/root.go index 3c80514f1..6a18c4009 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -80,10 +80,10 @@ func Execute() { } }() - // Intercept ` --help` with JSON requested (via --json or agent mode) - // before Cobra parses flags, so it works for every command, including the root - // and namespace commands that don't define their own --json flag. - if renderJSONHelpIfRequested(rootCmd, os.Args[1:]) { + // Resolve agent mode for the pre-parse `--help` path; real commands re-apply the parsed flag in applyAgentModeDefaults. + cli.agentMode = resolveAgentMode(cli.agentClientName(), os.Args[1:]) + + if renderJSONHelpIfRequested(cli, rootCmd, os.Args[1:]) { return } @@ -165,12 +165,7 @@ func commandRequiresAuthentication(invokedCommandName string) bool { return true } -// agentModeEnvVar enables agent mode when set to a truthy value (e.g. 1 or true). -// In agent mode, `--help` emits JSON without needing an explicit --json flag. -const agentModeEnvVar = "AUTH0_AGENT_MODE" - -// agentClientName resolves detectAgent once per invocation and caches it so -// agent-mode resolution and telemetry share a single lookup. +// agentClientName caches detectAgent so mode resolution and telemetry share one lookup. func (c *cli) agentClientName() string { if c.detectedAgent == "" { c.detectedAgent = detectAgent(iostream.IsInputTerminal() && iostream.IsOutputTerminal()) @@ -178,15 +173,12 @@ func (c *cli) agentClientName() string { return c.detectedAgent } -// applyAgentModeDefaults enables agent mode when resolved, defaulting to JSON -// output with prompts and colors off unless those flags were explicitly set. +// applyAgentModeDefaults, when agent mode is on, defaults to JSON output with prompts and colors off unless those flags were explicitly set. func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { - if !resolveAgentMode(cmd, cli.agentClientName()) { + if !cli.agentMode { return } - cli.agentMode = true - if !anyFlagChanged(cmd, "json", "json-compact", "csv") { cli.json = true } @@ -198,17 +190,20 @@ func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { } } -// resolveAgentMode decides whether agent mode is active. Precedence: -// an explicit --agent-mode flag (highest), then a truthy AUTH0_AGENT_MODE env -// value, then a detected (non-human, non-unknown) agent client. -func resolveAgentMode(cmd *cobra.Command, agentClient string) bool { - if flagChanged(cmd, "agent-mode") { - if enabled, err := cmd.Flags().GetBool("agent-mode"); err == nil { - return enabled +// resolveAgentMode reports agent mode: an explicit --agent-mode flag wins, then AUTH0_AGENT_MODE, then a detected agent client. +func resolveAgentMode(agentClient string, args []string) bool { + for _, arg := range args { + if arg == "--agent-mode" { + return true + } + if value, found := strings.CutPrefix(arg, "--agent-mode="); found { + if enabled, err := strconv.ParseBool(value); err == nil { + return enabled + } } } - if enabled, _ := strconv.ParseBool(strings.TrimSpace(os.Getenv(agentModeEnvVar))); enabled { + if agentModeEnabled() { return true } diff --git a/internal/cli/root_test.go b/internal/cli/root_test.go index 983ecdfbb..d5724b6df 100644 --- a/internal/cli/root_test.go +++ b/internal/cli/root_test.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "net/http" - "strconv" "testing" "github.com/auth0/go-auth0/management" @@ -191,39 +190,56 @@ func TestMergeProperties(t *testing.T) { } func TestResolveAgentMode(t *testing.T) { - // The newCmd helper builds a command carrying the --agent-mode flag, - // optionally marking it as explicitly set to a given value. - newCmd := func(flagSet bool, flagValue bool) *cobra.Command { - cmd := &cobra.Command{Use: "list"} - cmd.Flags().Bool("agent-mode", false, "") - if flagSet { - _ = cmd.Flags().Set("agent-mode", strconv.FormatBool(flagValue)) - } - return cmd - } - - // Precedence: flag > env > detection. + // Precedence: an explicit --agent-mode flag in args > AUTH0_AGENT_MODE > detection. tests := []struct { - name string - env string - flagSet bool - flagValue bool - detected string - expected bool + name string + env string + args []string + detected string + expected bool }{ - {name: "flag false wins over env true", env: "true", flagSet: true, flagValue: false, detected: "claude-code", expected: false}, - {name: "flag true wins over env false", env: "false", flagSet: true, flagValue: true, detected: "human", expected: true}, - {name: "env truthy enables when flag unset", env: "1", detected: "human", expected: true}, - {name: "detected agent enables when flag and env unset", env: "", detected: "claude-code", expected: true}, - {name: "human is not agent mode", env: "", detected: "human", expected: false}, - {name: "unknown is not agent mode", env: "", detected: "unknown", expected: false}, + {name: "bare flag wins over env false", args: []string{"--agent-mode"}, env: "false", detected: "human", expected: true}, + {name: "flag=false wins over env true and detection", args: []string{"--agent-mode=false"}, env: "true", detected: "claude-code", expected: false}, + {name: "flag=true enables", args: []string{"--agent-mode=true"}, detected: "human", expected: true}, + {name: "unparseable flag falls through to env", args: []string{"--agent-mode=maybe"}, env: "1", detected: "human", expected: true}, + {name: "env truthy when no flag", env: "1", detected: "human", expected: true}, + {name: "detected agent when no flag or env", detected: "claude-code", expected: true}, + {name: "human is not agent mode", detected: "human", expected: false}, + {name: "unknown is not agent mode", detected: "unknown", expected: false}, } for _, test := range tests { t.Run(test.name, func(t *testing.T) { t.Setenv(agentModeEnvVar, test.env) - cmd := newCmd(test.flagSet, test.flagValue) - assert.Equal(t, test.expected, resolveAgentMode(cmd, test.detected)) + assert.Equal(t, test.expected, resolveAgentMode(test.detected, test.args)) }) } } + +func TestApplyAgentModeDefaults(t *testing.T) { + t.Run("disabled sets nothing", func(t *testing.T) { + c := &cli{agentMode: false} + applyAgentModeDefaults(c, &cobra.Command{Use: "list"}) + assert.False(t, c.json) + assert.False(t, c.noInput) + assert.False(t, c.noColor) + }) + + t.Run("enabled sets json/no-input/no-color", func(t *testing.T) { + c := &cli{agentMode: true} + applyAgentModeDefaults(c, &cobra.Command{Use: "list"}) + assert.True(t, c.json) + assert.True(t, c.noInput) + assert.True(t, c.noColor) + }) + + t.Run("explicit output flag is not overridden", func(t *testing.T) { + cmd := &cobra.Command{Use: "list"} + cmd.Flags().Bool("csv", false, "") + _ = cmd.Flags().Set("csv", "true") + + c := &cli{agentMode: true} + applyAgentModeDefaults(c, cmd) + assert.False(t, c.json) // JSON not forced because --csv was explicit. + }) +} From 6d21d6ab366ffc41094288da80f0c3318f0d9c62 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Mon, 17 Aug 2026 15:33:47 +0530 Subject: [PATCH 4/6] add `--agent-mode` flag documentation --- docs/auth0_actions_modules_actions_list.md | 1 + docs/auth0_actions_modules_create.md | 1 + docs/auth0_actions_modules_delete.md | 1 + docs/auth0_actions_modules_list.md | 1 + docs/auth0_actions_modules_show.md | 1 + docs/auth0_actions_modules_update.md | 1 + docs/auth0_actions_modules_versions_list.md | 1 + docs/auth0_actions_modules_versions_publish.md | 1 + docs/auth0_actions_modules_versions_rollback.md | 1 + docs/auth0_actions_modules_versions_show.md | 1 + docs/auth0_client-grants_create.md | 1 + docs/auth0_client-grants_delete.md | 1 + docs/auth0_client-grants_list.md | 1 + docs/auth0_client-grants_organizations_list.md | 1 + docs/auth0_client-grants_show.md | 1 + docs/auth0_client-grants_update.md | 1 + docs/auth0_commands.md | 1 + docs/auth0_refresh-tokens_delete.md | 1 + docs/auth0_refresh-tokens_revoke.md | 1 + docs/auth0_refresh-tokens_show.md | 1 + docs/auth0_refresh-tokens_update.md | 1 + docs/auth0_sessions_delete.md | 1 + docs/auth0_sessions_revoke.md | 1 + docs/auth0_sessions_show.md | 1 + docs/auth0_sessions_update.md | 1 + docs/auth0_users_refresh-tokens_delete.md | 1 + docs/auth0_users_refresh-tokens_list.md | 1 + docs/auth0_users_sessions_delete.md | 1 + docs/auth0_users_sessions_list.md | 1 + 29 files changed, 29 insertions(+) diff --git a/docs/auth0_actions_modules_actions_list.md b/docs/auth0_actions_modules_actions_list.md index d510c5698..003654554 100644 --- a/docs/auth0_actions_modules_actions_list.md +++ b/docs/auth0_actions_modules_actions_list.md @@ -35,6 +35,7 @@ auth0 actions modules actions list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_create.md b/docs/auth0_actions_modules_create.md index 83325014e..0d08f2fca 100644 --- a/docs/auth0_actions_modules_create.md +++ b/docs/auth0_actions_modules_create.md @@ -45,6 +45,7 @@ auth0 actions modules create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_delete.md b/docs/auth0_actions_modules_delete.md index e4229a0f1..e3e08c52f 100644 --- a/docs/auth0_actions_modules_delete.md +++ b/docs/auth0_actions_modules_delete.md @@ -40,6 +40,7 @@ auth0 actions modules delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_list.md b/docs/auth0_actions_modules_list.md index 4d50921f9..f8aa80354 100644 --- a/docs/auth0_actions_modules_list.md +++ b/docs/auth0_actions_modules_list.md @@ -36,6 +36,7 @@ auth0 actions modules list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_show.md b/docs/auth0_actions_modules_show.md index 11df37a69..fdfa94c66 100644 --- a/docs/auth0_actions_modules_show.md +++ b/docs/auth0_actions_modules_show.md @@ -32,6 +32,7 @@ auth0 actions modules show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_update.md b/docs/auth0_actions_modules_update.md index 0336f39d5..bf9a2a2e9 100644 --- a/docs/auth0_actions_modules_update.md +++ b/docs/auth0_actions_modules_update.md @@ -41,6 +41,7 @@ auth0 actions modules update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_versions_list.md b/docs/auth0_actions_modules_versions_list.md index f6fb0545f..909b6e3cc 100644 --- a/docs/auth0_actions_modules_versions_list.md +++ b/docs/auth0_actions_modules_versions_list.md @@ -35,6 +35,7 @@ auth0 actions modules versions list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_versions_publish.md b/docs/auth0_actions_modules_versions_publish.md index 130851ee6..400f9b113 100644 --- a/docs/auth0_actions_modules_versions_publish.md +++ b/docs/auth0_actions_modules_versions_publish.md @@ -33,6 +33,7 @@ auth0 actions modules versions publish [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_versions_rollback.md b/docs/auth0_actions_modules_versions_rollback.md index 6d3911caf..111646a45 100644 --- a/docs/auth0_actions_modules_versions_rollback.md +++ b/docs/auth0_actions_modules_versions_rollback.md @@ -35,6 +35,7 @@ auth0 actions modules versions rollback [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_actions_modules_versions_show.md b/docs/auth0_actions_modules_versions_show.md index 02a880ac4..a59ae84bc 100644 --- a/docs/auth0_actions_modules_versions_show.md +++ b/docs/auth0_actions_modules_versions_show.md @@ -32,6 +32,7 @@ auth0 actions modules versions show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_create.md b/docs/auth0_client-grants_create.md index 15d9766dc..51c3aa193 100644 --- a/docs/auth0_client-grants_create.md +++ b/docs/auth0_client-grants_create.md @@ -53,6 +53,7 @@ auth0 client-grants create [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_delete.md b/docs/auth0_client-grants_delete.md index d7213303a..5a863a691 100644 --- a/docs/auth0_client-grants_delete.md +++ b/docs/auth0_client-grants_delete.md @@ -38,6 +38,7 @@ auth0 client-grants delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_list.md b/docs/auth0_client-grants_list.md index 427a1bbe3..e0166017d 100644 --- a/docs/auth0_client-grants_list.md +++ b/docs/auth0_client-grants_list.md @@ -47,6 +47,7 @@ auth0 client-grants list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_organizations_list.md b/docs/auth0_client-grants_organizations_list.md index ffc3c3230..dcb52d406 100644 --- a/docs/auth0_client-grants_organizations_list.md +++ b/docs/auth0_client-grants_organizations_list.md @@ -36,6 +36,7 @@ auth0 client-grants organizations list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_show.md b/docs/auth0_client-grants_show.md index 32428e1c2..e63aca086 100644 --- a/docs/auth0_client-grants_show.md +++ b/docs/auth0_client-grants_show.md @@ -33,6 +33,7 @@ auth0 client-grants show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_client-grants_update.md b/docs/auth0_client-grants_update.md index 99e0c7bf9..488c80cfc 100644 --- a/docs/auth0_client-grants_update.md +++ b/docs/auth0_client-grants_update.md @@ -49,6 +49,7 @@ auth0 client-grants update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_commands.md b/docs/auth0_commands.md index c5d2bd4b5..e4df26117 100644 --- a/docs/auth0_commands.md +++ b/docs/auth0_commands.md @@ -41,6 +41,7 @@ auth0 commands [command] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_refresh-tokens_delete.md b/docs/auth0_refresh-tokens_delete.md index de32912fd..d169fcbde 100644 --- a/docs/auth0_refresh-tokens_delete.md +++ b/docs/auth0_refresh-tokens_delete.md @@ -36,6 +36,7 @@ auth0 refresh-tokens delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_refresh-tokens_revoke.md b/docs/auth0_refresh-tokens_revoke.md index aa5aa2e5c..81ff76c1b 100644 --- a/docs/auth0_refresh-tokens_revoke.md +++ b/docs/auth0_refresh-tokens_revoke.md @@ -41,6 +41,7 @@ auth0 refresh-tokens revoke [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_refresh-tokens_show.md b/docs/auth0_refresh-tokens_show.md index 90f86f10e..df1e3349d 100644 --- a/docs/auth0_refresh-tokens_show.md +++ b/docs/auth0_refresh-tokens_show.md @@ -32,6 +32,7 @@ auth0 refresh-tokens show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_refresh-tokens_update.md b/docs/auth0_refresh-tokens_update.md index b641456e3..50a86abc7 100644 --- a/docs/auth0_refresh-tokens_update.md +++ b/docs/auth0_refresh-tokens_update.md @@ -35,6 +35,7 @@ auth0 refresh-tokens update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_sessions_delete.md b/docs/auth0_sessions_delete.md index 23a5f130d..029af755a 100644 --- a/docs/auth0_sessions_delete.md +++ b/docs/auth0_sessions_delete.md @@ -36,6 +36,7 @@ auth0 sessions delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_sessions_revoke.md b/docs/auth0_sessions_revoke.md index 5385a56d3..25168b2e8 100644 --- a/docs/auth0_sessions_revoke.md +++ b/docs/auth0_sessions_revoke.md @@ -35,6 +35,7 @@ auth0 sessions revoke [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_sessions_show.md b/docs/auth0_sessions_show.md index 2cb1908c9..2a879d69a 100644 --- a/docs/auth0_sessions_show.md +++ b/docs/auth0_sessions_show.md @@ -32,6 +32,7 @@ auth0 sessions show [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_sessions_update.md b/docs/auth0_sessions_update.md index a3c776fa3..cb1b4eb45 100644 --- a/docs/auth0_sessions_update.md +++ b/docs/auth0_sessions_update.md @@ -35,6 +35,7 @@ auth0 sessions update [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_refresh-tokens_delete.md b/docs/auth0_users_refresh-tokens_delete.md index 257f933f5..3209d94e4 100644 --- a/docs/auth0_users_refresh-tokens_delete.md +++ b/docs/auth0_users_refresh-tokens_delete.md @@ -35,6 +35,7 @@ auth0 users refresh-tokens delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_refresh-tokens_list.md b/docs/auth0_users_refresh-tokens_list.md index f163129ba..5b1594a08 100644 --- a/docs/auth0_users_refresh-tokens_list.md +++ b/docs/auth0_users_refresh-tokens_list.md @@ -36,6 +36,7 @@ auth0 users refresh-tokens list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_sessions_delete.md b/docs/auth0_users_sessions_delete.md index 5a4f0ad69..ea8166f46 100644 --- a/docs/auth0_users_sessions_delete.md +++ b/docs/auth0_users_sessions_delete.md @@ -35,6 +35,7 @@ auth0 users sessions delete [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. diff --git a/docs/auth0_users_sessions_list.md b/docs/auth0_users_sessions_list.md index e4d562127..dc1985b1b 100644 --- a/docs/auth0_users_sessions_list.md +++ b/docs/auth0_users_sessions_list.md @@ -36,6 +36,7 @@ auth0 users sessions list [flags] ## Inherited Flags ``` + --agent-mode Output JSON, disable prompts and colors. Auto-enabled for AI agents; set AUTH0_AGENT_MODE=false to disable. --debug Enable debug mode. --no-color Disable colors. --no-input Disable interactivity. From 3663fa29c8528c105d678325386183829678f5b3 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Mon, 17 Aug 2026 16:16:44 +0530 Subject: [PATCH 5/6] feat: update destructive command confirmation logic for agent mode --- internal/cli/actions.go | 2 +- internal/cli/api.go | 2 +- internal/cli/apis.go | 2 +- internal/cli/apps.go | 2 +- internal/cli/cli.go | 5 ++--- internal/cli/custom_domains.go | 2 +- internal/cli/email_provider.go | 2 +- internal/cli/event_streams.go | 2 +- internal/cli/log_streams.go | 2 +- internal/cli/network_acl.go | 4 ++-- internal/cli/organizations.go | 4 ++-- internal/cli/phone_provider.go | 2 +- internal/cli/roles.go | 2 +- internal/cli/rules.go | 2 +- internal/cli/token_exchange.go | 2 +- internal/cli/users.go | 2 +- test/integration/organizations-test-cases.yaml | 4 ++++ 17 files changed, 23 insertions(+), 20 deletions(-) diff --git a/internal/cli/actions.go b/internal/cli/actions.go index 8d5b87738..b52467eec 100644 --- a/internal/cli/actions.go +++ b/internal/cli/actions.go @@ -467,7 +467,7 @@ func deleteActionCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/api.go b/internal/cli/api.go index af0418b25..6f9889d15 100644 --- a/internal/cli/api.go +++ b/internal/cli/api.go @@ -127,7 +127,7 @@ func apiCmdRun(cli *cli, inputs *apiCmdInputs) func(cmd *cobra.Command, args []s return fmt.Errorf("failed to parse command inputs: %w", err) } - if inputs.Method == http.MethodDelete && !cli.force && !canPrompt(cmd) { + if inputs.Method == http.MethodDelete && !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/apis.go b/internal/cli/apis.go index f9d1405f4..e0d79ae98 100644 --- a/internal/cli/apis.go +++ b/internal/cli/apis.go @@ -557,7 +557,7 @@ func deleteAPICmd(cli *cli) *cobra.Command { ids = append(ids, args...) } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/apps.go b/internal/cli/apps.go index fec3036c3..1a479868f 100644 --- a/internal/cli/apps.go +++ b/internal/cli/apps.go @@ -421,7 +421,7 @@ func deleteAppCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/cli.go b/internal/cli/cli.go index b89fc78dc..0648483a6 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -176,9 +176,8 @@ func canPrompt(cmd *cobra.Command) bool { return iostream.IsInputTerminal() && iostream.IsOutputTerminal() && !noInput } -// errDestructiveNoConfirm is returned when a destructive command cannot show a -// confirmation prompt (e.g. --no-input or agent mode) and --force was not -// passed. Destructive actions fail closed instead of proceeding silently. +// errDestructiveNoConfirm is returned when a destructive command is run in agent +// mode without --force, so agents must opt in explicitly instead of deleting silently. var errDestructiveNoConfirm = errors.New( "this is a destructive command; re-run with --force to proceed without a confirmation prompt", ) diff --git a/internal/cli/custom_domains.go b/internal/cli/custom_domains.go index 50ee5d4b8..abb8492a0 100644 --- a/internal/cli/custom_domains.go +++ b/internal/cli/custom_domains.go @@ -437,7 +437,7 @@ func deleteCustomDomainCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/email_provider.go b/internal/cli/email_provider.go index 9f438936b..aa4e24f56 100644 --- a/internal/cli/email_provider.go +++ b/internal/cli/email_provider.go @@ -409,7 +409,7 @@ func deleteEmailProviderCmd(cli *cli) *cobra.Command { auth0 email provider delete --force auth0 email provider rm --force`, RunE: func(cmd *cobra.Command, args []string) error { - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/event_streams.go b/internal/cli/event_streams.go index f4f262b7b..c412a444e 100644 --- a/internal/cli/event_streams.go +++ b/internal/cli/event_streams.go @@ -390,7 +390,7 @@ func deleteEventStreamCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/log_streams.go b/internal/cli/log_streams.go index f98b5d9f3..ceeedbd78 100644 --- a/internal/cli/log_streams.go +++ b/internal/cli/log_streams.go @@ -218,7 +218,7 @@ func deleteLogStreamCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/network_acl.go b/internal/cli/network_acl.go index e524d7715..d406eaabc 100644 --- a/internal/cli/network_acl.go +++ b/internal/cli/network_acl.go @@ -1003,7 +1003,7 @@ Use --all flag to delete all network ACLs at once.`, } // Confirm deletion. - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } @@ -1032,7 +1032,7 @@ Use --all flag to delete all network ACLs at once.`, ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/organizations.go b/internal/cli/organizations.go index 34f594b65..97925234b 100644 --- a/internal/cli/organizations.go +++ b/internal/cli/organizations.go @@ -523,7 +523,7 @@ func deleteOrganizationCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } @@ -1314,7 +1314,7 @@ func deleteInvitationOrganizationCmd(cli *cli) *cobra.Command { return err } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/phone_provider.go b/internal/cli/phone_provider.go index 54f656aa9..868095757 100644 --- a/internal/cli/phone_provider.go +++ b/internal/cli/phone_provider.go @@ -393,7 +393,7 @@ auth0 phone provider delete --force auth0 phone provider delete auth0 phone provider rm --force`, RunE: func(cmd *cobra.Command, args []string) error { - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/roles.go b/internal/cli/roles.go index 29f790c04..41e350995 100644 --- a/internal/cli/roles.go +++ b/internal/cli/roles.go @@ -312,7 +312,7 @@ func deleteRoleCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/rules.go b/internal/cli/rules.go index 5e89b04db..3cefc6e38 100644 --- a/internal/cli/rules.go +++ b/internal/cli/rules.go @@ -284,7 +284,7 @@ func deleteRuleCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/token_exchange.go b/internal/cli/token_exchange.go index 8ebd911f0..721e4f41b 100644 --- a/internal/cli/token_exchange.go +++ b/internal/cli/token_exchange.go @@ -318,7 +318,7 @@ func deleteTokenExchangeProfileCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/internal/cli/users.go b/internal/cli/users.go index edb374e25..83e44ec60 100644 --- a/internal/cli/users.go +++ b/internal/cli/users.go @@ -648,7 +648,7 @@ func deleteUserCmd(cli *cli) *cobra.Command { ids = args } - if !cli.force && !canPrompt(cmd) { + if !cli.force && cli.agentMode { return errDestructiveNoConfirm } diff --git a/test/integration/organizations-test-cases.yaml b/test/integration/organizations-test-cases.yaml index 6cbd6273a..11ade95db 100644 --- a/test/integration/organizations-test-cases.yaml +++ b/test/integration/organizations-test-cases.yaml @@ -316,3 +316,7 @@ tests: exactly: "[]" config: retries: 5 + + 041 - delete organization invitation app: + command: auth0 apps delete $(./test/integration/scripts/get-org-inv-app-id.sh) --force --no-input + exit-code: 0 From 2d4810ed4746fdd38a15ce8ec4f9166d7bf00e09 Mon Sep 17 00:00:00 2001 From: ramya18101 Date: Mon, 17 Aug 2026 17:04:02 +0530 Subject: [PATCH 6/6] feat: enforce confirmation for destructive actions in agent mode --- internal/cli/actions_modules.go | 4 ++++ internal/cli/actions_modules_versions.go | 4 ++++ internal/cli/client_grants.go | 4 ++++ internal/cli/commands.go | 12 ------------ internal/cli/commands_test.go | 21 --------------------- internal/cli/refresh_tokens.go | 8 ++++++++ internal/cli/root.go | 11 ++++++++--- internal/cli/root_test.go | 1 + internal/cli/sessions.go | 8 ++++++++ internal/cli/users_refresh_tokens.go | 4 ++++ internal/cli/users_sessions.go | 4 ++++ 11 files changed, 45 insertions(+), 36 deletions(-) diff --git a/internal/cli/actions_modules.go b/internal/cli/actions_modules.go index 2eb12f42c..6c55e5635 100644 --- a/internal/cli/actions_modules.go +++ b/internal/cli/actions_modules.go @@ -515,6 +515,10 @@ func deleteActionModuleCmd(cli *cli) *cobra.Command { ids = args } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/actions_modules_versions.go b/internal/cli/actions_modules_versions.go index 277f97323..564c78490 100644 --- a/internal/cli/actions_modules_versions.go +++ b/internal/cli/actions_modules_versions.go @@ -148,6 +148,10 @@ func rollbackActionModuleVersionCmd(cli *cli) *cobra.Command { return err } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("This replaces the module's draft with the selected version. Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/client_grants.go b/internal/cli/client_grants.go index 4fe60fbe4..6f94547c4 100644 --- a/internal/cli/client_grants.go +++ b/internal/cli/client_grants.go @@ -798,6 +798,10 @@ func deleteClientGrantCmd(cli *cli) *cobra.Command { ids = append(ids, args...) } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil diff --git a/internal/cli/commands.go b/internal/cli/commands.go index c90170e54..4ace9bbe2 100644 --- a/internal/cli/commands.go +++ b/internal/cli/commands.go @@ -3,10 +3,8 @@ package cli import ( "encoding/json" "fmt" - "os" "regexp" "slices" - "strconv" "strings" "github.com/spf13/cobra" @@ -342,16 +340,6 @@ func hasJSONRequest(args []string) bool { return slices.Contains(args, "--json") } -// agentModeEnvVar enables agent mode when set to a truthy value (e.g. 1 or true). -// In agent mode, `--help` emits JSON without needing an explicit --json flag. -const agentModeEnvVar = "AUTH0_AGENT_MODE" - -// agentModeEnabled reports whether agent mode is enabled via AUTH0_AGENT_MODE. -func agentModeEnabled() bool { - enabled, _ := strconv.ParseBool(strings.TrimSpace(os.Getenv(agentModeEnvVar))) - return enabled -} - func renderCommandTreeJSON(tree []commandNode) error { encoder := json.NewEncoder(iostream.Output) encoder.SetIndent("", " ") diff --git a/internal/cli/commands_test.go b/internal/cli/commands_test.go index 198cbb6e7..ec3ba1855 100644 --- a/internal/cli/commands_test.go +++ b/internal/cli/commands_test.go @@ -170,27 +170,6 @@ func TestHasJSONRequest(t *testing.T) { assert.False(t, hasJSONRequest(nil)) } -func TestAgentModeEnabled(t *testing.T) { - tests := []struct { - value string - want bool - }{ - {"1", true}, - {"true", true}, - {" true ", true}, - {"0", false}, - {"false", false}, - {"", false}, - } - - for _, tt := range tests { - t.Run(tt.value, func(t *testing.T) { - t.Setenv(agentModeEnvVar, tt.value) - assert.Equal(t, tt.want, agentModeEnabled()) - }) - } -} - func TestAnnotateWithRawAPINote(t *testing.T) { nodes := annotateWithRawAPINote([]commandNode{{Path: "auth0 apps"}, {Path: "auth0 users"}}) diff --git a/internal/cli/refresh_tokens.go b/internal/cli/refresh_tokens.go index 4dc8ed619..4f02075a9 100644 --- a/internal/cli/refresh_tokens.go +++ b/internal/cli/refresh_tokens.go @@ -174,6 +174,10 @@ func deleteRefreshTokenCmd(cli *cli) *cobra.Command { id = args[0] } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil @@ -255,6 +259,10 @@ func revokeRefreshTokenCmd(cli *cli) *cobra.Command { target = fmt.Sprintf("refresh token with ID %q", id) } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm(fmt.Sprintf("Are you sure you want to revoke %s?", target)); !confirmed { return nil diff --git a/internal/cli/root.go b/internal/cli/root.go index 6a18c4009..5b1232659 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -190,7 +190,10 @@ func applyAgentModeDefaults(cli *cli, cmd *cobra.Command) { } } -// resolveAgentMode reports agent mode: an explicit --agent-mode flag wins, then AUTH0_AGENT_MODE, then a detected agent client. +// agentModeEnvVar explicitly enables (true) or disables (false) agent mode, overriding auto-detection. +const agentModeEnvVar = "AUTH0_AGENT_MODE" + +// resolveAgentMode reports agent mode: an explicit --agent-mode flag wins, then AUTH0_AGENT_MODE (true/false), then a detected agent client. func resolveAgentMode(agentClient string, args []string) bool { for _, arg := range args { if arg == "--agent-mode" { @@ -203,8 +206,10 @@ func resolveAgentMode(agentClient string, args []string) bool { } } - if agentModeEnabled() { - return true + if raw := strings.TrimSpace(os.Getenv(agentModeEnvVar)); raw != "" { + if enabled, err := strconv.ParseBool(raw); err == nil { + return enabled + } } switch agentClient { diff --git a/internal/cli/root_test.go b/internal/cli/root_test.go index d5724b6df..e23b2a460 100644 --- a/internal/cli/root_test.go +++ b/internal/cli/root_test.go @@ -203,6 +203,7 @@ func TestResolveAgentMode(t *testing.T) { {name: "flag=true enables", args: []string{"--agent-mode=true"}, detected: "human", expected: true}, {name: "unparseable flag falls through to env", args: []string{"--agent-mode=maybe"}, env: "1", detected: "human", expected: true}, {name: "env truthy when no flag", env: "1", detected: "human", expected: true}, + {name: "env false disables even when detected", env: "false", detected: "claude-code", expected: false}, {name: "detected agent when no flag or env", detected: "claude-code", expected: true}, {name: "human is not agent mode", detected: "human", expected: false}, {name: "unknown is not agent mode", detected: "unknown", expected: false}, diff --git a/internal/cli/sessions.go b/internal/cli/sessions.go index a366462cb..d58277bbb 100644 --- a/internal/cli/sessions.go +++ b/internal/cli/sessions.go @@ -159,6 +159,10 @@ func deleteSessionCmd(cli *cli) *cobra.Command { id = args[0] } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed?"); !confirmed { return nil @@ -200,6 +204,10 @@ func revokeSessionCmd(cli *cli) *cobra.Command { id = args[0] } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed? This also revokes the session's refresh tokens."); !confirmed { return nil diff --git a/internal/cli/users_refresh_tokens.go b/internal/cli/users_refresh_tokens.go index 9891a079a..cf4fd1a80 100644 --- a/internal/cli/users_refresh_tokens.go +++ b/internal/cli/users_refresh_tokens.go @@ -112,6 +112,10 @@ func deleteUserRefreshTokensCmd(cli *cli) *cobra.Command { inputs.ID = args[0] } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed? This deletes ALL refresh tokens for the user."); !confirmed { return nil diff --git a/internal/cli/users_sessions.go b/internal/cli/users_sessions.go index 71845468e..cf1eec734 100644 --- a/internal/cli/users_sessions.go +++ b/internal/cli/users_sessions.go @@ -112,6 +112,10 @@ func deleteUserSessionsCmd(cli *cli) *cobra.Command { inputs.ID = args[0] } + if !cli.force && cli.agentMode { + return errDestructiveNoConfirm + } + if !cli.force && canPrompt(cmd) { if confirmed := prompt.Confirm("Are you sure you want to proceed? This deletes ALL sessions for the user."); !confirmed { return nil