Create a repository with repo create #40

Closed
opened 2026-10-22 22:13:18 -05:00 by jeff · 0 comments
Owner

Part of #36

zfj repo create [<owner>/]<name> [options]

  • A bare name creates the authenticated user's repository (createCurrentUserRepo); <org>/<name> creates one in that organization (createOrgRepo).
  • The repository: -d/--description, --private, --default-branch, --template (marks it a template), and the initialization options --init (auto_init), --readme, --license, --gitignore (commas allowed), and --label-set (issue_labels).
  • Local, only when asked: --clone clones it as zfj repo clone does, with --protocol. --remote [<name>] instead adds it as a remote of the current clone, named origin by default. Nothing is pushed.
  • Prints the new repository's URL; --json writes the response instead.
  • trust_model and object_format_name stay with zfj op.
Part of #36 `zfj repo create [<owner>/]<name> [options]` - **A bare name** creates the authenticated user's repository (`createCurrentUserRepo`); `<org>/<name>` creates one in that organization (`createOrgRepo`). - **The repository:** `-d/--description`, `--private`, `--default-branch`, `--template` (marks it a template), and the initialization options `--init` (`auto_init`), `--readme`, `--license`, `--gitignore` (commas allowed), and `--label-set` (`issue_labels`). - **Local, only when asked:** `--clone` clones it as `zfj repo clone` does, with `--protocol`. `--remote [<name>]` instead adds it as a remote of the current clone, named `origin` by default. Nothing is pushed. - Prints the new repository's URL; `--json` writes the response instead. - `trust_model` and `object_format_name` stay with `zfj op`.
jeff closed this issue 2026-10-22 23:35:06 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
jeff/zfj#40
No description provided.