Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2024-01-05T15:02:28.260Z
Answers: 2024-01-05T15:02:28.260Z
Answers: Spacelift
Body: <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>
  
Tags: <terraform><spacelift>
Title: Spacelift - local run - is it possible
UserDisplayName: Danielle Murphy
ThreadText: # 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](https://github.com/username_1-io/spacectl) :
  
  ```
  spacectl stack local-preview --id <STACK ID>
  
  ```
  
  
  ---
  
  