---
title: "Discussion on \"What happens when we run 'terraform plan' and 'terraform apply' with '-refresh-only' flag and when we run without this flag?\" | Hashnode"
description: "Discussion on \"What happens when we run 'terraform plan' and 'terraform apply' with '-refresh-only' flag and when we run without this flag?\". How ‘ -refresh-only ‘ flag works:\nThe -refresh-only flag can be used with terraform plan and terraform apply commands. When you run a command with this flag, Terraform will detect and show if any changes exists in our infrastructure, but it will not ..."
url: "https://hashnode.com/posts/does-terraform-plan-refresh-the-state-what-about-apply-and-other-commands/67dae81072691c5732c2a8d3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What happens when we run 'terraform plan' and 'terraform apply' with '-refresh-only' flag and when we run without this flag?](https://terraform-refresh.hashnode.dev/does-terraform-plan-refresh-the-state-what-about-apply-and-other-commands?utm_source=hashnode&utm_medium=feed)

How ‘ -refresh-only ‘ flag works: The -refresh-only flag can be used with terraform plan and terraform apply commands. When you run a command with this flag, Terraform will detect and show if any changes exists in our infrastructure, but it will not ...

Mar 19, 2025 · 7 min read · terraform-refresh.hashnode.dev  
Updated Apr 14, 2025  
Read the article

-   [#terraform-refresh](https://hashnode.com/tag/terraform-refresh)
-   [#terraform-cloud](https://hashnode.com/tag/terraform-cloud)
-   [#terraform-basics](https://hashnode.com/tag/terraform-basics)

## Written by

[Surekha Kokatam](https://hashnode.com/@surekha-cloud)

@surekha-cloud

  
[View profile](https://hashnode.com/@surekha-cloud)

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
