MCPcopy Create free account
hub / github.com/cloudflare/computer / repoHelp

Function repoHelp

packages/computer/src/artifacts/cli.ts:635–660  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

633}
634
635function repoHelp(): string {
636 return `usage: artifacts repo <subcommand> [<args>]
637
638All names are session-scoped; pass local names only.
639
640 repo create <name> [--description <text>] [--default-branch <branch>] [--read-only]
641 Create a repository. Prints JSON: { name, remote, defaultBranch, token }.
642 The token is an initial git token — treat it as a secret.
643
644 repo get <name>
645 Print JSON metadata for a repository: ArtifactsRepoInfo with a local name.
646
647 repo list
648 Print a JSON array of this session's repository metadata (without remote).
649
650 repo delete <name>
651 Delete a repository. Prints a one-line confirmation.
652
653 repo import <name> --url <https-url> [--branch <branch>] [--depth <n>] [--read-only] [--description <text>]
654 Import an external git remote into a new repository.
655
656Example:
657 artifacts repo create build-cache --description "CI artifacts"
658 artifacts repo list
659`;
660}
661
662function tokenHelp(): string {
663 return `usage: artifacts token <subcommand> [<args>]

Callers 1

runRepoFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected