Skip to content

Document propr setup in setup guides and CLI reference #1608

Closed

Description

@propr-dev

Context

Once the setup command exists, documentation should make it the recommended path while preserving the existing manual commands for advanced users and troubleshooting.

Requirements

  • Update the setup overview to mention propr setup as the preferred local/server bootstrap path.
  • Update local and server setup tutorials to use setup first, then list manual fallback commands.
  • Update CLI reference to include command purpose and options.
  • Link security hardening docs from the final setup guidance.
  • Explain that setup can be re-run safely.

Implementation Specification

Modify docs/docs/tutorials/setup.md, docs/docs/tutorials/setup-local.md, docs/docs/tutorials/setup-server.md, and docs/docs/features/propr-cli.md.

Acceptance Criteria

  • Docs show propr setup in quick-start examples.
  • Existing init stack, check, and start docs remain available as manual/advanced flows.
  • Docs mention polling vs webhook tradeoffs and link to hardening guidance.

Created by ProPR AI Planner

Activity

  1. propr-dev commented on Jun 22, 2026

    @propr-dev
    ContributorAuthor

    Suggested Implementation:

    Implementation Approach

    The documentation should introduce setup as the default guided path without removing the lower-level commands. That preserves power-user workflows and keeps troubleshooting docs useful. The rejected alternative was replacing all setup examples wholesale, but that would hide the command composition that setup itself is automating.

    File: docs/docs/tutorials/setup.md

    Why this file: This is the setup entry point. It should direct new users to the guided command first.

    --- a/docs/docs/tutorials/setup.md
    +++ b/docs/docs/tutorials/setup.md
    @@
    -Most people should run ProPR from the prebuilt Docker images, started either by the ProPR CLI (`propr init stack` + `propr start`, recommended; Node.js 22+) or by the `propr/launcher:latest` container (no Node.js needed). You only need source setup if you are changing ProPR itself.
    +Most people should run ProPR from the prebuilt Docker images, started either by the ProPR CLI (`propr setup`, recommended; Node.js 22+) or by the `propr/launcher:latest` container (no Node.js needed). You only need source setup if you are changing ProPR itself.
    @@
    -You will install the CLI, scaffold a runtime directory with `propr init stack`, configure GitHub access, and start the stack with `propr start` (the launcher container remains as a no-Node.js alternative). The Web UI is at `http://localhost:5173`, the API on port `4000`. Issue intake uses polling by default.
    +You will install the CLI and run `propr setup`, which checks Docker, initializes the stack, pulls only the images you need, guides GitHub and agent setup, starts the stack, and shows the Web UI URL. The lower-level `propr init stack`, `propr check`, and `propr start` commands remain available for manual or scripted setup. Issue intake uses polling by default unless you choose direct webhooks.

    File: docs/docs/tutorials/setup-local.md

    Why this file: Local setup is the primary new-user tutorial and should show the wizard before manual commands.

    --- a/docs/docs/tutorials/setup-local.md
    +++ b/docs/docs/tutorials/setup-local.md
    @@
    -## Set Up And Start With The CLI (Recommended)
    +## Set Up And Start With The CLI (Recommended)
    @@
     mkdir propr-deploy && cd propr-deploy
    -propr init stack               # creates .env + data/ logs/ repos/, detects agent credentials
    +propr setup                    # guided checks, stack init, images, agents, GitHub, start, and Web UI URL
     
    +
    +`propr setup` is safe to re-run later. It preserves existing data and `.env`
    +entries, then guides you through changing basic settings such as selected agents,
    +GitHub intake mode, the user whitelist, or repository setup.
    +
    +If you prefer the manual flow, run the underlying commands directly:
    +
    +bash
    +propr init stack               # creates .env + data/ logs/ repos/, detects agent credentials
    +propr check                    # verifies Docker, images, agents, and GitHub auth mode
    +propr start                    # pulls images and starts the stack with a live dashboard
    +propr ui                       # opens http://localhost:5173
    +
    @@
    -Review the rest of `.env` (next section), then:
    +When using the manual flow, review the rest of `.env` (next section), then:

    File: docs/docs/tutorials/setup-server.md

    Why this file: Server setup should recommend the wizard while still pointing production operators to hardening and manual environment review.

    --- a/docs/docs/tutorials/setup-server.md
    +++ b/docs/docs/tutorials/setup-server.md
    @@
     propr init stack               # scaffold .env + data/ logs/ repos/
    +propr setup                    # optional guided pass for images, GitHub, agents, whitelist, repo, and UI URL
     # configure GitHub auth in .env: own App (GH_APP_ID, GH_INSTALLATION_ID,
     # HOST_GH_PRIVATE_KEY) or a shared App via `propr relay enroll`
     propr check
     propr start --no-tui
     
    +
    +For new deployments, you can run `propr setup --root /srv/propr` instead of the
    +manual `init/check/start` sequence. Review `.env` afterward on production hosts,
    +especially public URLs, port bindings, webhook mode, secrets, and the user
    +whitelist. For stricter exposure controls, continue with the
    +[Secure VPS Deployment](./setup-vps.md) and
    +[Advanced VPS Hardening](./setup-vps-hardening.md) guides.

    File: docs/docs/features/propr-cli.md

    Why this file: The CLI reference should document command behavior and options once setup is exposed.

    --- a/docs/docs/features/propr-cli.md
    +++ b/docs/docs/features/propr-cli.md
    @@
    +## `propr setup`
    +
    +Runs the guided setup wizard. It combines environment checks, stack
    +initialization, selective image pulling, coding-agent selection and authentication
    +guidance, GitHub event intake selection, stack startup validation, user whitelist
    +setup, optional repository setup, and Web UI access.
    +
    +bash
    +propr setup
    +propr setup --root /srv/propr
    +propr setup --no-tui
    +propr setup --skip-remote-image-check
    +
    +
    +The command is safe to re-run. It preserves existing stack data and does not
    +rewrite `.env` wholesale; setup only updates specific values after you choose an
    +action. Use `--no-tui` when your terminal does not support the Ink interface.
    +
    +The GitHub intake step offers three modes: the default ProPR App/relay path,
    +polling, and direct webhooks. Polling avoids public webhook exposure; direct
    +webhooks require a public HTTPS route and `GH_WEBHOOK_SECRET`. See
    +[GitHub Authentication](../operations/github-auth.md) and
    +[Server Setup](../tutorials/setup-server.md#configure-github-webhooks-optional).
    +
    +After setup starts the stack, it prints the Web UI URL and links to
    +[Advanced VPS Hardening](../tutorials/setup-vps-hardening.md) for production
    +security hardening.
    +
  2. propr-dev commented on Jun 22, 2026

    @propr-dev
    ContributorAuthor

    🤖 AI processing has started for this issue using claude agent with claude-opus-4-8 model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: claude
    • Model: claude-opus-4-8
    • Branch: 1608/claude-opus-4-8-document-propr-setup-in-s-20260622-1131-83m
    • Base Branch: 1599-epic-build-comprehensive-b5c
    • Worktree: issue-1608-20260622-1131-claude-opus-4-8-83m

    🔍 Track Task Execution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions