Customize RealmKit CLI behavior with configuration files, environment variables, and command-line options. Set up defaults that work for your workflow.
Get started with basic configuration in under a minute
realmkit config set apiKey your-api-key-hererealmkit config set defaultCategory saas
realmkit config set authorName "Your Name"
realmkit config set authorEmail "you@example.com"realmkit config list~/.realmkit/config.jsonUser-wide settings that apply to all RealmKit operations
{
"registry": "https://registry.realmkit.com",
"apiKey": "rk_live_...",
"defaultCategory": "web",
"autoInstall": true,
"git": {
"autoInit": true,
"defaultBranch": "main"
},
"templates": {
"defaultLicense": "MIT",
"authorName": "Your Name",
"authorEmail": "you@example.com"
}
}./.realmkit.jsonProject-specific settings that override global configuration
{
"name": "my-custom-realm",
"version": "1.0.0",
"category": "saas",
"features": {
"auth": true,
"payments": false,
"database": true
},
"scripts": {
"setup": "npm install && npm run db:setup",
"dev": "npm run dev"
}
}.env / shell environmentEnvironment-based configuration for sensitive data
{
"REALMKIT_API_KEY": "your-api-key-here",
"REALMKIT_REGISTRY": "https://registry.realmkit.com",
"REALMKIT_DEBUG": "true",
"REALMKIT_TIMEOUT": "30000",
"REALMKIT_USER_AGENT": "MyApp/1.0"
}Complete reference of all available configuration options
apiKeynullYour RealmKit API key for authenticated requests
registryhttps://registry.realmkit.comRealmKit registry URL
userAgentRealmKit CLI/versionCustom user agent for API requests
defaultCategorywebDefault category for new realms
defaultLicenseMITDefault license for new realms
autoInstalltrueAutomatically install dependencies after realm creation
authorNamegit config user.nameDefault author name for realm metadata
authorEmailgit config user.emailDefault author email for realm metadata
git.autoInittrueAutomatically initialize git repository
git.defaultBranchmainDefault branch name for new repositories
git.autoCommitfalseCreate initial commit after realm creation
git.commitMessageInitial commit from RealmKitDefault initial commit message
timeout30000Request timeout in milliseconds
retries3Number of retry attempts for failed requests
concurrency5Maximum concurrent operations
cacheDir~/.realmkit/cacheDirectory for caching downloaded realms
debugfalseEnable debug logging
logLevelinfoLog level (error, warn, info, debug)
logFilenullPath to log file
verbosefalseEnable verbose output
Override configuration using environment variables
REALMKIT_API_KEYAPI key for authentication
REALMKIT_REGISTRYRegistry URL override
REALMKIT_DEBUGEnable debug mode (true/false)
REALMKIT_TIMEOUTRequest timeout in milliseconds
REALMKIT_CONFIG_PATHCustom config file path
REALMKIT_CACHE_DIRCustom cache directory
REALMKIT_NO_COLORDisable colored output (true/false)
REALMKIT_USER_AGENTCustom user agent string
# Set API key via environment
export REALMKIT_API_KEY="your-api-key-here"
# Enable debug mode
export REALMKIT_DEBUG=true
# Use custom registry
export REALMKIT_REGISTRY="https://your-registry.com"
# Run RealmKit with environment config
realmkit listManage configuration using the command line interface
realmkit config listShow all current configuration values
realmkit config listrealmkit config get <key>Get a specific configuration value
realmkit config get apiKeyrealmkit config set <key> <value>Set a configuration value
realmkit config set defaultCategory saasrealmkit config unset <key>Remove a configuration value
realmkit config unset apiKeyrealmkit config resetReset configuration to defaults
realmkit config reset --confirmrealmkit config editOpen configuration file in editor
realmkit config edit --globalTips for maintaining secure and maintainable configuration
Common configuration issues and their solutions
• Check file permissions on config files
• Verify JSON syntax with realmkit config validate
• Ensure config file paths are correct
• Check for typos in environment variable names
• Verify key format starts with rk_live_ or rk_test_
• Check key hasn't been revoked in account settings
• Ensure key has required scopes for operations
• Test key with realmkit auth test
# Enable debug mode
realmkit config set debug true
# Show all configuration sources
realmkit config list --verbose
# Test configuration
realmkit config validateNow that you have RealmKit configured, here's what to do next