roots / roots/trellis-cli

Feature Request: "add" command for adding extra sites

Open
#390 0 comments 5 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Go
Stars
169
Forks
30
Avg merge
13h 43m
Merged PRs (30d)
7

Description

Terms
Summary

Add trellis add command. This is usefull for adding new sites to an existing trellis project.

The existing trellis new command adds a complete new trellis project. It fills in a pre-configured setup. I would like to have a command that does the same but only for adding a new site to the project.

This way you dont have to copy-paste-edit the existing site. It's faster and foolproof.

Motivation
Why are we doing this?

To make it easier and foolproof to add a new sites to an existing trellis project.

What use cases does it support?

Users wanting to add more than one site to a trellis project.

What is the expected outcome?

A clean and pre-configured site setup added to the trellis project.

Potential conflicts / foreseeable issues

Check if there is a site with the same name already existing in the trellis project.

Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by examining the existing trellis new command and how it creates a complete project. Define the corresponding site-only setup, including detection of an existing site with the same name; done means trellis add creates a clean, pre-configured site in an existing project without copying files manually.

Written by the indexing model from the issue text.

Assessment

Tech stack
ansible, go
Domain
cli, devops
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.