refresh
Update Kyku state to match the current state of cloud resources. This detects drift caused by manual changes or out-of-band modifications.
kyku refresh [options]Options
Section titled “Options”| Flag | Default | Description |
|---|---|---|
-e, --env <environment> |
default |
Environment workspace |
-c, --config <path> |
./infrastructure.ts |
Path to config file |
-p, --passphrase <phrase> |
— | Passphrase for encrypted state |
Examples
Section titled “Examples”# Refresh default environmentkyku refresh
# Refresh production environmentkyku refresh --env=prodBehavior
Section titled “Behavior”- Loads the current state file
- For each resource, calls
provider.readState()with the stored provider ID - Updates the state with the current cloud config and outputs
- Does not create, modify, or destroy any resources
Use kyku plan after refresh to see if the config now differs from the updated state.