game config
View, validate, and manage Game Framework CLI configuration.
Subcommands
show- Display current configurationvalidate- Validate configurationedit- Open config in default editor
Usage
game config [command]config show
Display the current configuration from .game.yml and CLI config.
Usage
game config showExample Output
# Project Configuration (.game.yml)
name: MyGame
version: 1.0.0
engines:
unity:
project_path: ../MyUnityProject
export_path: ../MyUnityProject/Exports
platforms:
android:
enabled: true
ios:
enabled: true
# CLI Configuration (~/.game/config.yml)
auth:
token: eyJhbGc...
workspace_id: ws-abc123
defaults:
api_url: http://localhost:4000config validate
Validate project configuration for correctness.
Usage
game config validateWhat It Checks
- .game.yml exists - Configuration file is present
- Valid YAML - Properly formatted YAML syntax
- Required fields - Name, version present
- Engine paths - Project paths exist
- Export paths - Export directories are valid
- Platform settings - Platform configurations are correct
Example Output
✓ Configuration file found
✓ Valid YAML syntax
✓ Required fields present
✓ Unity project path exists
✓ Export path valid
✓ Platform configurations correct
Configuration is valid!Validation Errors
❌ Unity project path not found: ../MyUnityProject
❌ Export path does not exist: ../MyUnityProject/Exports
⚠️ iOS platform enabled but target_path not set
Fix these issues before running export/sync commands.config edit
Open the configuration file in your default editor.
Usage
game config editThis opens .game.yml in:
- macOS: Default text editor or
$EDITOR - Linux:
$EDITORornano - Windows: Notepad or
%EDITOR%
Set a custom editor:
export EDITOR=code # VS Code
export EDITOR=vim # Vim
export EDITOR=nano # NanoConfiguration Files
Project Configuration (.game.yml)
Located in your Flutter project root:
name: MyGame
version: 1.0.0
publish:
workspace_id: "ws-abc123"
private: false
exclude:
- "*.log"
- "temp/"
engines:
unity:
project_path: ../MyUnityProject
export_path: ../MyUnityProject/Exports
export_settings:
development: false
build_configuration: Release
scenes:
- MainMenu
- Gameplay
platforms:
android:
enabled: true
target_path: android/unityLibrary
build_settings:
export_project: true
scripting_backend: IL2CPP
target_architectures: [ARM64]
ios:
enabled: true
target_path: ios/UnityFramework.framework
build_settings:
symlink_libraries: trueCLI Configuration (~/.game/config.yml)
Located in your home directory:
# Authentication
auth:
token: "jwt_token_here"
api_key: "api_key_here"
expires_at: "2026-12-31T23:59:59Z"
# Default settings
defaults:
workspace_id: "ws-abc123"
api_url: "http://localhost:4000"
oidc_url: "http://localhost:4000"
client_id: "game-cli"
scopes: "openid profile email"
# User preferences
preferences:
auto_export: true
confirm_publish: true
verbose: falseNever commit ~/.game/config.yml to version control - it contains sensitive credentials!
Configuration Options
Root Level
name(required) - Project nameversion(optional) - Project versionpublish(optional) - Publishing configuration
Engine Level
project_path(required) - Path to Unity/Unreal projectexport_path(optional) - Where exports are savedexport_settings(optional) - Engine-specific export settingsplatforms(required) - Platform configurations
Export Settings
development(optional) - Development build flagbuild_configuration(optional) - Build configurationscenes(Unity) - List of scenes to includelevels(Unreal) - List of levels to includecustom_settings(optional) - Additional settings
Platform Level
enabled(required) - Whether platform is enabledtarget_path(optional) - Where to copy files in Flutter projectbuild_settings(optional) - Platform-specific build settings
Examples
Initialize New Config
# Create default .game.yml
game init
# View it
game config show
# Validate it
game config validateEdit Config
# Open in editor
game config edit
# Or edit manually
vim .game.yml
nano .game.ymlCheck Before Operations
# Validate before export
game config validate
game export unity --platform android
# Validate before publish
game config validate
game publishTroubleshooting
Config Not Found
Error: No .game.yml found
Solution: Run game init to create one
Invalid YAML
Error: Failed to parse .game.yml
Solutions:
- Check YAML syntax
- Verify indentation (use spaces, not tabs)
- Use
game config validatefor details
Path Not Found
Error: Unity project path not found
Solutions:
- Verify
project_pathin.game.ymlis correct - Use relative paths:
../MyUnityProject - Check path exists:
ls ../MyUnityProject
Best Practices
Version Control
Commit .game.yml:
git add .game.yml
git commit -m "Add game configuration"Never commit CLI config:
# Add to .gitignore
echo "~/.game/" >> .gitignoreRelative Paths
Use relative paths for team collaboration:
# Good ✅
project_path: ../MyUnityProject
# Bad ❌
project_path: /Users/john/Projects/MyUnityProjectValidation
Always validate before operations:
game config validate && game export unity --all
game config validate && game publishRelated Commands
game init- Initialize new configurationgame export- Uses project configgame sync- Uses project configgame publish- Uses publish config
Use game config validate regularly to catch configuration issues early!