pulumi/cmd
Matt Ellis 6845f9ed20 Add pulumi config refresh to fetch most recent configuration
The newly added `pulumi config refresh` updates your local copy of the
Pulumi.<stack-name>.yaml file to have the same configuration as the
most recent deployment in the cloud.

This can be used in a varirty of ways. One place we plan to use it is
in automation to clean up "leaked" stacks we have in CI. With the
changes you'll now be able to do the following:

```
$ cd $(mktemp -d)
$ echo -e "name: who-cares\nruntime: nodejs" > Pulumi.yaml
$ pulumi stack select <leaked-stack-name>
$ pulumi config refresh -f
$ pulumi destroy --force
```

Having a simpler gesture for the above is something we'll want to do
long term (we should be able to support `pulumi destory <stack-name>`
from a completely empty folder, today you need a Pulumi.yaml file
present, even if the contents don't matter).

But this gets us a little closer to where we want to be and introduces
a helpful primitive in the system.

Contributes to #814
2018-05-14 10:28:42 -07:00
..
archive.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
cancel.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
ci.go Disable interactive mode for a CI/CD server. (#1297) 2018-04-30 15:27:53 -07:00
config.go Add pulumi config refresh to fetch most recent configuration 2018-05-14 10:28:42 -07:00
config_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
destroy.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
gen_bash_completion.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
gen_markdown.go Add commands to generate goodies (#1288) 2018-04-28 11:18:21 -07:00
init.go Remove the need to pulumi init for the local backend 2018-04-18 04:53:49 -07:00
login.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
logout.go Fix login/logout issue against non api.pulumi.com clouds 2018-04-27 15:41:50 -07:00
logs.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
logs_test.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
new.go Make the default pulumi new project description empty (#1339) 2018-05-08 10:46:39 -07:00
plugin.go Snapshot management overhaul and refactor (#1273) 2018-04-25 17:20:08 -07:00
plugin_install.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
plugin_ls.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
plugin_rm.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
preview.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
pulumi.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
refresh.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
stack.go Don't mention PPC unless needed in the CLI 2018-04-23 16:50:48 -04:00
stack_export.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
stack_graph.go Spruce up the stack graph command: 2018-02-22 17:31:45 -08:00
stack_import.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
stack_init.go Address code review feedback 2018-04-20 02:34:10 -04:00
stack_ls.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
stack_output.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00
stack_output_test.go Adjust stack output formating in the CLI 2018-02-16 12:25:25 -08:00
stack_rm.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
stack_select.go Begin tracing Pulumi API calls. (#1330) 2018-05-07 18:23:03 -07:00
update.go Support -y as shorthand for --yes (#1340) 2018-05-08 09:55:08 -07:00
util.go Enable distributed tracing. 2018-05-09 11:43:09 -07:00
version.go Update the copyright end date to 2018. (#1068) 2018-03-21 12:43:21 -07:00