diff --git a/cmd/config/set_app_secret.go b/cmd/config/set_app_secret.go index 45a42ca22..459e6f135 100644 --- a/cmd/config/set_app_secret.go +++ b/cmd/config/set_app_secret.go @@ -33,22 +33,11 @@ func NewCmdConfigSetAppSecret(f *cmdutil.Factory) *cobra.Command { cmd := &cobra.Command{ Use: "set-app-secret", Short: "Rotate a profile's stored app secret (verified before saving)", - Long: `Update a profile's app secret after you reset it on the Lark/Feishu open -platform. The new secret is piped to stdin (--app-secret-stdin) and -verified against Lark before anything is saved; only the target profile -changes. + Long: `Rotate a profile's app secret after you reset it on the Lark/Feishu open platform. +The new secret is verified against Lark before anything is saved; only the target +profile changes — other profiles and the active selection stay untouched. -Defaults to the active profile; use the global --profile to -target another. - -Without --yes it previews the target (profile + app_id) and exits 10 -without reading stdin or writing anything — confirm it is the right bot, -then re-run with --yes. AI agents: show the preview to the user first, and -on the re-run pass --profile to pin that exact bot. - -Example: - read -rs S; printf '%s' "$S" | lark-cli --profile \ - config set-app-secret --app-secret-stdin --yes`, +Targets the active profile; use the global --profile to pick another.`, RunE: func(cmd *cobra.Command, args []string) error { return setAppSecretRun(f, opts) },