Grepigee is a command-line tool for searching and managing Apigee configurations across different environments.
[Add installation instructions here]
Grepigee uses a YAML configuration file to store default settings. You can create or edit this file to set default values for environment, organization, and other options.
- Mac/Linux:
~/.grepigee.yaml - Windows:
%USERPROFILE%\.grepigee.yaml
- Create a new file named
.grepigee.yamlin your home directory. - Add your configuration settings:
environment: prod
organisation: mycompany- Save the file.
You can also use the following command to save your current settings to the config file:
grepigee save-config
To authenticate and set up your Apigee bearer token:
This command will provide instructions on how to set your APIGEE_BEARER_TOKEN. Follow the on-screen instructions to complete the authentication process.
To search for a specific pattern in your Apigee configurations:
grepigee find -e -x <regex_pattern>
Example:
grepigee find -e dev -x "(?i)api-ecs"
This command searches for the case-insensitive pattern "api-ecs" in the "dev" environment.
Options:
-e, --env: Specify the environment to search in (required)-x, --regex: The regular expression pattern to search for-o, --org: Specify the organization (optional if set in config)
Search in a specific environment: Copygrepigee find -e test -x "api-v1"
Use a saved environment from config: Copygrepigee find -x "error-handler"
Save current settings to config: Copygrepigee -e staging -o myorg save-config
[Add contribution guidelines here]
[Add license information here]