Skip to main content
GitHub source Initialize or update W&B configuration for the current directory. Set a project and entity, create local W&B settings, and prepare the directory for experiment tracking. Examples: Initialize W&B configuration for the current directory
wandb init --project PROJECT_NAME --entity TEAM_ENTITY
Set the W&B mode to offline
wandb init --mode offline
Reset existing W&B configuration for the current directory
wandb init --reset

Usage

wandb init [OPTIONS]

Options

project

Set the project to upload runs to.
FlagDefaultType
-p, --projectNoneSTRING

entity

Set the entity to scope the project to.
FlagDefaultType
-e, --entityNoneSTRING

reset

Reset existing W&B configuration for the directory.
FlagDefaultType
--resetFalseBOOL

mode

Set the W&B mode. One of ‘online’, ‘offline’, or ‘disabled’.
FlagDefaultType
-m, --modeNoneSTRING

help

Show this message and exit.
FlagDefaultType
--helpFalseBOOL

CLI Help

Usage: init [OPTIONS]

  Initialize or update W&B configuration for the current directory.

  Set a project and entity, create local W&B settings, and prepare the
  directory for experiment tracking.

  Examples:

  Initialize W&B configuration for the current directory

  ```bash wandb init --project PROJECT_NAME --entity TEAM_ENTITY ```

  Set the W&B mode to offline

  ```bash wandb init --mode offline ```

  Reset existing W&B configuration for the current directory

  ```bash wandb init --reset ```

Options:
  -p, --project TEXT  Set the project to upload runs to.
  -e, --entity TEXT   Set the entity to scope the project to.
  --reset             Reset existing W&B configuration for the directory.
  -m, --mode TEXT     Set the W&B mode. One of 'online', 'offline', or
                      'disabled'.
  --help              Show this message and exit.