camp project add

Add a project to campaign

Synopsis

Add a git repository as a project in the campaign.

The project is cloned as a git submodule into the projects/ directory. A worktree directory is also created for future parallel development.

If you're already inside a campaign, that campaign is used by default. Outside a campaign, use --campaign or a bare --campaign to select a registered target campaign.

Source can be:

Examples: camp project add git@github.com:org/api.git # Add remote repo camp project add https://github.com/org/web.git # Add via HTTPS camp project add --local ./my-repo --name my-project # Add existing local repo camp project add --campaign platform --local ./my-repo # Add outside current campaign camp project add git@github.com:org/api.git --name backend # Custom name

camp project add [source] [flags]

Options

  -c, --campaign string   Target campaign by name or ID; omit value to pick interactively
  -h, --help              help for add
  -l, --local string      Add existing local repository instead of cloning
  -n, --name string       Override project name (defaults to repo name)
      --no-commit         Skip automatic git commit
  -p, --path string       Override destination path (defaults to projects/<name>)

Options inherited from parent commands

      --config string   config file (default: ~/.obey/campaign/config.json)
      --no-color        disable colored output
      --verbose         enable verbose output

SEE ALSO