ubx refresh syncs the local Pulumi state file with the actual state of cloud resources. Read-only — no cloud resources are created, updated, or deleted. Only the local state file is updated.
Usage
Examples
Flags
| Flag | Description |
|---|---|
--env string | Target environment |
--stack string | Target stack name |
--target stringArray | Target a specific resource (repeatable) |
Output
When to Use
- After manual changes to cloud resources outside of ubx
- Before
ubx planto ensure state is current - To detect drift between desired state and actual cloud state
Prerequisites
The.ubx/ directory must exist — run ubx apply at least once first:
