goharbor / harbor-cli

[Sandbox] Official Harbor CLI
Apache License 2.0
31 stars 37 forks source link

Project Create `--public`is not clear #118

Closed Vad1mo closed 2 months ago

Vad1mo commented 2 months ago
./harbor project create --help
create project

Usage:
  harbor project create [flags]

Flags:
  -h, --help                   help for create
      --name string            Name of the project
      --proxy-cache            Whether the project is a proxy cache project
      --public                 Project is public or private (default true)
      --registry-id string     ID of referenced registry when creating the proxy cache project
      --storage-limit string   Storage quota of the project (default "-1")

Global Flags:
      --config string          config file (default is $HOME/.harbor/config.yaml) (default "/Users/vadim/.harbor/config.yaml")
  -o, --output-format string   Output format. One of: json|yaml
  -v, --verbose                verbose output

Here I cannot figure out what default true means, in --public

By default, projects are private unless they are specified explicitly as public.