oz0 workspace export
Usage and flags for oz0 workspace export.
For: Operators and developers looking up a command.
Push a revision (default: the head) as a new branch (default oz0/<folder>-<revision>) on top of --base (default: the repository's default branch), into --path (default: the root), with the token in the tenant secret --secret. A branch that exists is refused: the export never force-pushes. --pull-request opens a pull request on GitHub, Gitea or Forgejo, or a merge request on GitLab; --forge and --forge-api name a self-hosted forge's kind and API address.
Usage
oz0 workspace export <folder> --repo <git-url> [flags]
Flags
| Flag | Type | Default | Description |
|---|---|---|---|
--base | string | the default branch | the branch to start from and open the pull request against |
--body | string | the pull request's description | |
--branch | string | oz0/<folder>-<revision> | the new branch |
--forge | string | guessed from the host | github, gitlab, gitea or forgejo |
--forge-api | string | the forge's API base URL, for a self-hosted forge | |
--json | bool | print JSON instead of a table | |
--path | string | the root | the repository's folder for the plugin |
--pull-request | bool | open a pull request (a merge request on GitLab) | |
--repo | string | the repository's https:// Git URL | |
--revision | string | the head | the revision to export |
--secret | string | tenant secret with a token that may push (the token, or user:token), bound to the repository's host and, for a pull request on another API host, that one too (oz0 secret set NAME --host HOST) | |
--tenant | string | default | the tenant |
--title | string | the revision's message | the pull request's title |
Inherited flags
| Flag | Type | Default | Description |
|---|---|---|---|
--context | string | $OZ0_CONTEXT or <config dir>/orchestrator-zero/context.json | CLI context file written by server init |
--log-level | string | info | log level: debug, info, warn or error |
See all oz0 commands and the global flags.