api managements utilities
All commands are intended to be run from the root directory of your api project (the one containing the package.json).
Commands for managing app configuration.
Pushes a config for the given env using the current version.
# set the config for the dev env
api-npm-scripts config update -s dev
Retrieves the configuration for a given environment using the current version.
# get the config for the given env
api-npm-scripts config get -s dev
List available configs for all versions
api-npm-scripts config list
Delete a config for a given environment using the current version.
# delete the config for the dev env
api-npm-scripts config delete -s dev
Commands for managing the api
Updates base path mappings for a given environment using the current version and claudia info from the config.
Requirements
- domain property in package.json set to api domain name
- claudia api configuration (either in claudia.json or config.json)
api-npm-scripts api update-base-mappings