dcloud git files raw

Serve one file verbatim

IAM git:PullRepositoryRead

Synopsis

dcloud git files raw repoId --path path [flags]

Arguments

  • <repoId>Required

    string

    Also accepted as --repo-id. Constraints: uuid

Flags

  • --refOptional

    string

    Branch, tag or commit id; the default branch when absent

    Constraints: 1-255 chars

  • --pathRequired

    string

    The file's path from the repository root, e.g. src/index.ts

    Constraints: 1-1000 chars

  • --downloadOptional

    enum

    `1` answers it as an attachment to save; otherwise it is served inline

    One of: 0, 1

Example

dcloud git files raw repoId --path example

Generated from the API description, the same one the API checks requests against and the CLI is built from.