Skip to content

cg config

Every cg config subcommand.

Every command also accepts -h / --help.

Command Summary
cg config Configuration commands.
cg config init Create a new config.yaml--project-local (under the current directory, or --at DIR) by default, or the shared per-user fallback location with --global.
cg config where Show which config.yaml (if any) would be used, and where its persistent data directory resolves to.
cg config dump Dump the resolved configuration as JSON.

cg config

Configuration commands.

usage: cg config [-h] COMMAND ...

Subcommands

  • init — Create a new config.yaml--project-local (under the current directory, or --at DIR) by default, or the shared per-user fallback location with --global. Does not consult the top-level --config/-c flag or CG_CONFIG--that's a discovery override for reading an existing config, not a placement option for creating a new one.
  • where — Show which config.yaml (if any) would be used, and where its persistent data directory resolves to.
  • dump — Dump the resolved configuration as JSON.

cg config init

Create a new config.yaml--project-local (under the current directory, or --at DIR) by default, or the shared per-user fallback location with --global. Does not consult the top-level --config/-c flag or CG_CONFIG--that's a discovery override for reading an existing config, not a placement option for creating a new one.

usage: cg config init [-h] [--global] [--at DIR] [--force]

Options

  • --global — Create the shared, per-user fallback config instead of a project-local one.
  • --at DIR (default: /home/runner/work/codingame-tools/codingame-tools) — Project-local only: directory to create .cg/config/config.yaml under. Defaults to the current directory.
  • -f, --force — Overwrite an existing config file at the target location.

cg config where

Show which config.yaml (if any) would be used, and where its persistent data directory resolves to.

usage: cg config where [-h]

cg config dump

Dump the resolved configuration as JSON.

usage: cg config dump [-h]

Generated from the parser itself. For when to use these, see the CLI guides.