<commit_before># Edit your Shopify theme locally

The Shopify theme gem is a command line tool that lets you make live changes to your published theme.

It will watch your local folders for any changes in your theme (including adding and removing files) and will update your .myshopify.com store to the latest changes. 

# Requirements

Ruby 1.9

# Installation

```
gem install shopify_theme [optional_theme_id]
```

# Usage

Generate the config file. Go get a valid api_key and password for your store head to `https://[your store].myshopify.com/admin/apps/private` and generate a private application. Default it adds the main theme, if you want to edit one of your other themes, add the `theme_id`.

```
theme configure api_key password store_url
```

Example of config.yml. Notice store has no http or https declaration. You can
use `:whitelist_files:` to specify files for upload. The `assets/`, `config/`,
`layout/`, `snippets/` and `templates/` directories are included by default.<commit_msg>added gem update instructions to update the gem<commit_after># Edit your Shopify theme locally

The Shopify theme gem is a command line tool that lets you make live changes to your published theme.

It will watch your local folders for any changes in your theme (including adding and removing files) and will update your .myshopify.com store to the latest changes. 

# Requirements

Ruby 1.9

# Installation

```
gem install shopify_theme [optional_theme_id]
```

to update to the latest version

```
gem update shopify_Theme
```

# Usage

Generate the config file. Go get a valid api_key and password for your store head to `https://[your store].myshopify.com/admin/apps/private` and generate a private application. Default it adds the main theme, if you want to edit one of your other themes, add the `theme_id`.

```
theme configure api_key password store_url
```

Example of config.yml. Notice store has no http or https declaration. You can
use `:whitelist_files:` to specify files for upload. The `assets/`, `config/`,
`layout/`, `snippets/` and `templates/` directories are included by default.
{'fraction_non_alphanumeric': 0.07329842931937172, 'fraction_numerical': 0.0019038553069966682, 'mean_word_length': 4.45974025974026, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5638401', 'n_tokens_mistral': 587, 'n_tokens_neox': 556, 'n_words': 295}