如何禁用pulumi中的版本检查输出?

时间:2020-11-06 14:21:55

标签: pulumi

我想在CI中使用pulumi并执行以下命令:

export DATABASE_PASSWORD=$(pulumi config get dbPassword)

但是如何阻止它打印到其中:

warning: A new version of Pulumi is available. To upgrade from version '2.12.1' to '2.13.0', visit https://pulumi.com/docs/reference/install/ for manual instructions and release notes.

1 个答案:

答案 0 :(得分:2)

可以通过将PULUMI_SKIP_UPDATE_CHECK环境变量设置为真实值来跳过更新检查。另请参阅:https://www.pulumi.com/docs/reference/cli/environment-variables/