Commands
config
Manage zopio
project configuration
Configuration Command
The config
command helps you manage configuration settings for your zopio
project. This command provides tools for viewing, setting, and resetting configuration values.
Usage
Options
Option | Description |
---|---|
-g, --get <key> | Get a configuration value |
-s, --set <key> <value> | Set a configuration value |
-d, --delete <key> | Delete a configuration value |
-l, --list | List all configuration values |
-r, --reset | Reset configuration to default values |
-h, --help | Display help for command |
List all configuration values
This displays all current configuration values:
Get a specific configuration value
Output:
Set a configuration value
Output:
Delete a configuration value
Output:
Reset configuration to defaults
Output:
Configuration File
Zopio stores configuration in a .zopiorc.json
file in the project root. This is a JSON file that contains all the configuration values:
Environment-Specific Configuration
You can create environment-specific configuration files by adding a suffix to the filename:
.zopiorc.development.json
- Development environment.zopiorc.production.json
- Production environment.zopiorc.test.json
- Test environment
The environment is determined by the NODE_ENV
environment variable.