diff --git a/installers/npm/install.js b/installers/npm/install.js index 0e3045ab2..4ff9ed59b 100644 --- a/installers/npm/install.js +++ b/installers/npm/install.js @@ -2,14 +2,16 @@ const { install } = require("./binary"); install(); -// this is duplicated in `src/command/install/mod.rs` -// for the curl installer. // use setTimeout so the message prints after the install happens.zzs -setTimeout( - () => - console.log( - "You can check out our documentation at https://go.apollo.dev/r/docs." - ), - 400 -); +setTimeout(() => { + // these messages are duplicated in `src/command/install/mod.rs` + // for the curl installer. + console.log( + "If you would like to disable Rover's anonymized usage collection, you can set APOLLO_TELEMETRY_DISABLED=1" + ); + console.log( + "You can check out our documentation at https://go.apollo.dev/r/docs." + ), + 400; +}); diff --git a/src/command/install/mod.rs b/src/command/install/mod.rs index 36ad0df35..1813d6187 100644 --- a/src/command/install/mod.rs +++ b/src/command/install/mod.rs @@ -5,10 +5,10 @@ use structopt::StructOpt; use binstall::Installer; -use crate::command::docs::shortlinks; use crate::command::RoverStdout; use crate::PKG_NAME; use crate::{anyhow, Context, Result}; +use crate::{command::docs::shortlinks, utils::env::RoverEnvKey}; use std::convert::TryFrom; use std::env; @@ -56,8 +56,11 @@ impl Install { } } - // this is duplicated in `installers/npm/install.js` + // these messages are duplicated in `installers/npm/install.js` // for the npm installer. + eprintln!( + "If you would like to disable Rover's anonymized usage collection, you can set {}=1", RoverEnvKey::TelemetryDisabled + ); eprintln!( "You can check out our documentation at {}.", Cyan.normal().paint(shortlinks::get_url_from_slug("docs"))