<p>You could preview uncommitted local changes by using the local-preview subcommand of our API client, named <a href="https://github.com/spacelift-io/spacectl" rel="nofollow noreferrer">spacectl</a> :</p>
<pre><code>spacectl stack local-preview --id &lt;STACK ID&gt;
</code></pre>

CC BY-SA 4.0
2024-01-05T15:02:28.260Z
2024-01-05T15:02:28.260Z
Spacelift
<p>I am trying to run my Spacelift stack with my files from a local folder, but using all the context / env vars etc that are present in my Spacelift stack, is this possible?</p>

<terraform><spacelift>
Spacelift - local run - is it possible
Danielle Murphy
# Spacelift - local run - is it possible

(Asked by: username_0 on 2024-01-03)

I am trying to run my username_1 stack with my files from a local folder, but using all the context / env vars etc that are present in my username_1 stack, is this possible?

**Tags:** terraform, spacelift


---

## 1 answers

### Answer by username_1 on 2024-01-05. Score: 0 | Accepted answer

You could preview uncommitted local changes by using the local-preview subcommand of our API client, named spacectl :
spacectl stack local-preview --id


---

