# ows-features-cli

This is a little script to make flipping feature flags on and off in qa simpler.

### Installation

Add this directory to your path, or copy the script `ows_features` somewhere that is. 


### Configuration

If you typically use a particular user for testing, you can set the `OWS_FEATURES_USER` environment variable, presumably in your .bash_profile or in your terminal session like so:
```bash
export OWS_FEATURES_USER=alw:16888
``` 
and all commands will default to this user.

### Usage

`$ ows_features list` will list the flags and their states.

`$ ows_features enable <flag>` will set the named feature on (variant "enabled").

`$ ows_features disable <flag>` will set the named feature off (variant "control").

### Specifying user

All commands take an option `-u <user>` parameter, with user being the user id as specified by ows-features.

Either the command line param, or the environment variable, must be set for commands to run.