You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add `--save-config` to also write the assembled configuration to a `config.json` (or `--save-config <path>`) so you can reuse or edit it later.
62
64
Nested options such as images, pricing and user ratings are only available through a `config.json` or the wizard.
63
65
66
+
### Command-line flags
67
+
68
+
| Flag | Config key | Description |
69
+
| --- | --- | --- |
70
+
|`-c, --config <path>`| - | Path to a `config.json`. Defaults to `./config.json`. |
71
+
|`--from <dir>`| - | Re-format previously-saved `completeGameProperties_*.json` files in `<dir>` instead of fetching (needs an earlier run with `keepCompleteProperties`). |
72
+
|`-o, --out <dir>`|`outputDirectory`| Directory to write output files to. Default `output`. |
73
+
|`--markets <codes>`|`markets`| Comma-separated market codes to fetch, e.g. `US,DE`. Enables flag-driven mode. |
.option('--properties <list>','comma-separated properties to include: productTitle,productId,developerName,publisherName,categories,storePage (flag-driven mode)')
34
34
.option('--keep-complete','also keep the complete, unfiltered API response per platform and market (flag-driven mode)')
35
35
.option('--no-treat-empty-as-null','keep empty strings instead of converting them to null (flag-driven mode)')
36
+
.option('--save-config [path]','also write the assembled configuration to a file for reuse (default: config.json; flag-driven mode)')
36
37
.addHelpText('after','\nProvide a config.json (in the current directory or via --config), or build one from flags with --markets/--platforms/--properties etc. (unspecified options use their defaults).\nRun "game-pass-api init" to create a config interactively, or see the README and config.schema.json for every option.')
37
38
.action(async(options,command)=>{
38
39
// Build the config entirely from flags when config-building flags are used (and no explicit --config file)
0 commit comments