Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 899 Bytes

init.md

File metadata and controls

29 lines (21 loc) · 899 Bytes
title sidebar_position
init
3

packit init

Initiate a repository to start using packit. By default this command adds .packit.yaml config file to the git repository in the current working directory.
If a spec file is found in the git repository, init will set specfile_path to point to it in .packit.yaml. Otherwise, specfile_path is set to <the name of the repository>.spec.

See source-git init if you want to initialize a source-git repo.

Help

Usage: packit init [OPTIONS] [PATH_OR_URL]

  Create the initial Packit configuration in a repository

  See 'packit source-git init', if you want to initialize a repository as a
  source-git repo.

Options:
  -f, --force  Reset config to default if already exists.
  -h, --help   Show this message and exit.