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-here
realmkit config set defaultCategory saas
realmkit config set authorName "Your Name"
realmkit config set authorEmail "you@example.com"
realmkit config list
~/.realmkit/config.json
User-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.json
Project-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 environment
Environment-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
apiKey
null
Your RealmKit API key for authenticated requests
registry
https://registry.realmkit.com
RealmKit registry URL
userAgent
RealmKit CLI/version
Custom user agent for API requests
defaultCategory
web
Default category for new realms
defaultLicense
MIT
Default license for new realms
autoInstall
true
Automatically install dependencies after realm creation
authorName
git config user.name
Default author name for realm metadata
authorEmail
git config user.email
Default author email for realm metadata
git.autoInit
true
Automatically initialize git repository
git.defaultBranch
main
Default branch name for new repositories
git.autoCommit
false
Create initial commit after realm creation
git.commitMessage
Initial commit from RealmKit
Default initial commit message
timeout
30000
Request timeout in milliseconds
retries
3
Number of retry attempts for failed requests
concurrency
5
Maximum concurrent operations
cacheDir
~/.realmkit/cache
Directory for caching downloaded realms
debug
false
Enable debug logging
logLevel
info
Log level (error, warn, info, debug)
logFile
null
Path to log file
verbose
false
Enable verbose output
Override configuration using environment variables
REALMKIT_API_KEY
API key for authentication
REALMKIT_REGISTRY
Registry URL override
REALMKIT_DEBUG
Enable debug mode (true/false)
REALMKIT_TIMEOUT
Request timeout in milliseconds
REALMKIT_CONFIG_PATH
Custom config file path
REALMKIT_CACHE_DIR
Custom cache directory
REALMKIT_NO_COLOR
Disable colored output (true/false)
REALMKIT_USER_AGENT
Custom 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 list
Manage configuration using the command line interface
realmkit config list
Show all current configuration values
realmkit config list
realmkit config get <key>
Get a specific configuration value
realmkit config get apiKey
realmkit config set <key> <value>
Set a configuration value
realmkit config set defaultCategory saas
realmkit config unset <key>
Remove a configuration value
realmkit config unset apiKey
realmkit config reset
Reset configuration to defaults
realmkit config reset --confirm
realmkit config edit
Open configuration file in editor
realmkit config edit --global
Tips 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 validate
Now that you have RealmKit configured, here's what to do next