---
title: app env pull
description: >-
  Creates or updates an .env files that contains app and app extension
  environment variables.
source_url:
  html: 'https://shopify.dev/docs/api/shopify-cli/app/app-env-pull'
  md: 'https://shopify.dev/docs/api/shopify-cli/app/app-env-pull.md'
api_name: shopify-cli
---

# app env pull

Creates or updates an `.env` files that contains app and app extension environment variables.

When an existing `.env` file is updated, changes to the variables are displayed in the terminal output. Existing variables and commented variables are preserved.

#### Flags

The following flags are available for the `app env pull` command:

* **--auth-alias \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_AUTH\_ALIAS**

  Alias of the Shopify account to use for authentication.

* **--client-id \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_CLIENT\_ID**

  The Client ID of your app.

* **--env-file \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_ENV\_FILE**

  Specify an environment file to update if the update flag is set

* **--json-schema**

  **env: SHOPIFY\_FLAG\_JSON\_SCHEMA**

  Print the command's JSON schemas.

* **--no-color**

  **env: SHOPIFY\_FLAG\_NO\_COLOR**

  Disable color output.

* **--no-input**

  **env: SHOPIFY\_FLAG\_NO\_INPUT**

  Disable interactive prompts and browser authentication.

* **--path \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_PATH**

  The path to your app directory.

* **--reset**

  **env: SHOPIFY\_FLAG\_RESET**

  Reset all your settings.

* **--verbose**

  **env: SHOPIFY\_FLAG\_VERBOSE**

  Increase the verbosity of the output. May include sensitive data.

* **-c, --config \<value>**

  **string**

  **env: SHOPIFY\_FLAG\_APP\_CONFIG**

  The name of the app configuration.

### Examples

* #### App env pull

  ##### app env pull

  ```sh
  shopify app env pull [flags]
  ```

***
