create-file-upload

Upload a local file to a repo.

Commands

  • create-file-upload [OPTIONS] --file <FILE> <REPO>

Example

pearing-cli create-file-upload website \
  --file ./screenshot.png \
  --description "Build screenshot"

Help Output

Upload a local file to a repo.

Usage: pearing-cli create-file-upload [OPTIONS] --file <FILE> <REPO>

Arguments:
  <REPO>  Repo locator (`teams/<team_slug>/<repo_slug>` or `<username>/<repo_slug>`)

Options:
      --file <FILE>            Local file path to upload
      --description <TEXT>      Optional description
      --content-type <TYPE>     Declared upload content type
  -h, --help                    Print help (see more with '--help')

Notes

  • Reads the file from disk and sends it as multipart form data.