dolt-init
Create a new Dolt data repository
TLDR
SYNOPSIS
dolt init [options]
DESCRIPTION
dolt init creates a new, empty Dolt repository in the current directory. It initializes the `.dolt` directory structure containing metadata, configuration, and the underlying storage for version-controlled SQL databases.This is typically the first command run when starting a new Dolt project. The initialized repository can immediately accept table creation, data insertion, and commits. An initial branch is created (default name "main", customizable with `-b`).User identity information (name and email) can be provided during initialization or inherited from global configuration. This identity is used for authorship of all subsequent commits.The command will fail if the current directory already contains an initialized Dolt repository.
PARAMETERS
-b, --initial-branch string
Name of the initial branch. If not provided, uses `init.defaultbranch` from global config (default "main").--name string
Author name for the initial commit. If not provided, uses `user.name` from global config.--email string
Author email for the initial commit. If not provided, uses `user.email` from global config.--date string
Date to use for the initial commit. If not specified, the current system time is used.--fun
Create the repository with a fun initial commit message.
SEE ALSO
dolt-clone(1), dolt-status(1), dolt-commit(1), dolt-sql(1), git-init(1)
