Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Telemetry is on by default **with no warning**

未关闭
#4,900 1 条评论 2 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
28/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
停滞
技术栈
typescript
领域
cli

调研方向

先删除 ~/.ionic/,然后运行 npx @ionic/cli help,接着追踪 CLI 首次运行时的配置和帮助入口。检查 telemetry 设置是如何创建并通过 ionic config 暴露的;当用户在首次运行时收到警告,并且能够找到查看或更改 telemetry 设置的方法时,即视为完成。

由索引模型根据 Issue 内容生成。

描述

triage

Description:

Ionic collects telemetry by default, does not warn users, does not mention it on first run, and hides the config in a way that cannot be discovered simply with a ionic help (this used to work in ionic v3 when telemetry was a top-level command.

Steps to Reproduce:

  1. remove local ionic settings:
rm -rf ~/.ionic/
  1. in a new window, just run the help:
npx @ionic/cli help
  1. observe that ~/.ionic/config.json was created with "telemetry": true and scan the terminal output

Output:

package.json:

{
  "version": "6.20.1",
  "telemetry": true,
  "npmClient": "npm",
  "tokens.telemetry": "...UUID..."
}

Local screen output makes no mention of the telemetry setting:

   _             _
  (_) ___  _ __ (_) ___
  | |/ _ \| '_ \| |/ __|
  | | (_) | | | | | (__
  |_|\___/|_| |_|_|\___| CLI 6.20.1


  Usage:

    $ ionic <command> [<args>] [--help] [--verbose] [--quiet] [--no-interactive] [--no-color] [--confirm] [options]

  Global Commands:

    completion ...................... (experimental) Enables tab-completion for
                                      Ionic CLI commands.
    config <subcommand> ............. Manage CLI and project config values
                                      (subcommands: get, set, unset)
    deploy <subcommand> ............. (paid) Appflow Deploy functionality
                                      (subcommands: manifest)
    docs ............................ Open the Ionic documentation website
    info ............................ Print project, system, and environment
                                      information
    init ............................ (beta) Initialize existing projects with
                                      Ionic
    login ........................... Log in to Ionic
    logout .......................... Log out of Ionic
    signup .......................... Create an Ionic account
    ssh <subcommand> ................ Commands for configuring SSH keys
                                      (subcommands: add, delete, generate, list,
                                      setup, use)
    start ........................... Create a new project

  Project Commands:

    You are not in a project directory.

NOTE: THERE IS NO TELEMETRY WARNING ON FIRST RUN WITH ANY COMMAND

If you wipe the config and start a new project without the wizard, you can search the output and notice that it never once mentions the telemetry.

主要语言
TypeScript
星标
2k
派生
681
PR 合并指标
30 天内没有已合并 PR

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ionic-team/ionic-cli 的其他 Issue

查看 ionic-team/ionic-cli 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。