# automation-api


08/11/2022, 7:54 AM
How can I use non default providers with refresh command in automation api ? Currently when running preview/up/destroy via automation api creates a provider map and passes it to various pulumi functions. When I use refresh command tho, it seems this code for creating provider map is never used. What changes do I need to make to make refresh command use non default providers ? If it is possible at all.
Also why does the preview command in golang automation api not support refresh flag ?