Skip to content

Implement itsup init Command #6

@Morriz

Description

@Morriz

Objective

Create initialization command that copies sample files to create initial configuration.

Prerequisites

Issue #3 completed (samples/ directory exists)

Implementation Steps

See todos/IMPLEMENTATION.md lines 820-957.

Key Steps:

  1. Create commands/__init__.py if needed
  2. Create commands/init.py with copy logic:
    • Check if already initialized
    • Check submodules exist
    • Copy samples/env → .env
    • Copy samples/traefik.yml → projects/traefik.yml
    • Copy samples/secrets/global.txt → secrets/global.txt
    • Show helpful next steps
  3. Update itsup main CLI to register command

Success Criteria

  • itsup init creates .env
  • itsup init creates projects/traefik.yml
  • itsup init creates secrets/global.txt
  • Shows helpful next steps
  • Detects if already initialized

Estimated Time

2 hours

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions