Skip to content

Orca ws init

orca ws init

Initialises a workspace.

Synopsis

Initialises a new workspace with orca. Either a local directory or a GitHub repository can be supplied. When using a local directory, will locate an orca workspace config and clone the relevant projects. When using a GitHub repository (--repo owner/repo), will check the workspace config on its default branch (or --branch) is valid, clone the repository over SSH into the target, and then clone any other required repositories based on that workspace config. Projects with a 'repository.branch' in the workspace config are cloned on that branch. Every branch is checked before anything is cloned. Set GH_TOKEN or GITHUB_TOKEN to use a private repository.

Once everything is cloned, each project's clone.post hook runs, then the workspace's init.post. Any extension they run that you haven't trusted yet is listed first, and you're asked to trust it.

It's safe to run again, in the same place: it clones whatever's missing, and runs every hook again. That's how to finish a setup that failed part-way, once the problem is fixed.

orca ws init [flags]

Options

  -b, --branch string   The branch of the --repo repository to read the workspace config from, and to clone. Defaults to the repository's default branch. Each project's branch comes from its 'repository.branch'.
  -c, --config string   The name of the workspace config file within the source. (default "orca.workspace.yaml")
  -h, --help            help for init
  -r, --repo string     The github repository to clone the workspace from, in the format 'owner/repo'.
      --skip-hooks      Clone without running any hooks.
  -s, --source string   The directory of the workspace configuration. (default "/home/runner/work/orca/orca")
  -t, --target string   The directory to store the workspace projects. Defaults to the current directory when --repo is used. (default "/home/runner/work/orca")
  -y, --yes             Run every extension the hooks run without asking, for this run only: it doesn't record them as trusted.

Options inherited from parent commands

      --log-format string   log format to use (default "text")
      --log-level string    Log level to use, one of: debug, info, warn, error, none. Defaults to none, as most errors are already surfaced anyway. (default "none")

SEE ALSO

  • orca ws - Commands related to managing workspaces.
Auto generated by spf13/cobra on 21-Oct-2026