HarperFast / HarperFast/create-harper

Swap template deploy scripts to native `harper` CLI once by_ref ships

Open
#117 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
3
Forks
0
Avg merge
15h 44m
Merged PRs (30d)
6

Description

## Context

Templates currently ship `scripts/deploy.mjs` + `scripts/setup-deploy.mjs` to do deploy-by-reference, because the released `harper` CLI doesn't yet have native support.

## Action (once released)

When `harper deploy by_ref=true` (HarperFast/harper#1777), `add_ssh_key generate=true` (HarperFast/harper-pro#570), and `harper deploy --setup` (HarperFast/harper#1778) land in a released `harper`:

- change the template `deploy` script to `harper deploy by_ref=true restart=true replicated=true`,
- change `deploy:setup` to `harper deploy --setup`,
- delete `scripts/deploy.mjs` and `scripts/setup-deploy.mjs` (also from `templates-shared/all/scripts/`),
- update the README "## Deployment" section accordingly.

Part of the deploy-by-reference effort.

---

## Related — deploy-by-reference effort

- `HarperFast/harper#1849` — two-phase stage/activate + `revert_component`
- `HarperFast/harper#1850` — `harper deploy by_ref=true` (deploy by git reference)
- `HarperFast/harper#1851` — `harper deploy setup=true` (client-side sealed deploy credential)
- `HarperFast/harper#1876` — CI token auth + `harper login --for-ci`
- `HarperFast/harper-pro#594` — `add_ssh_key generate=true` (cluster-side keygen)
- `HarperFast/create-harper#118` — scaffolds this flow
- `HarperFast/documentation#599` — two-phase deploy docs
- `HarperFast/documentation#616` — by-reference / sealed-credential / CI-auth docs

Contributor guide

Open the contributing guide

Research direction

First verify that the referenced harper CLI features are released, then inspect the template deploy scripts, templates-shared/all/scripts/, and the README "## Deployment" section. Done means the deploy commands use the native CLI syntax, both obsolete JavaScript scripts are removed from the listed locations, and the README matches the new flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
cli, devops
Issue type
Refactor
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.