caprover-cli icon indicating copy to clipboard operation
caprover-cli copied to clipboard

-t option is used with tarFile and appToken

Open fu-sen opened this issue 3 years ago • 1 comments
trafficstars

Got this when I looked at caprover deploy --help.

  -t, --tarFile <value>           tar file to be uploaded, must contain captain-definition file (env: CAPROVER_TAR_FILE)
  -i, --imageName <value>         image name to be deployed, it should either exist on server, or it has to be public, or on a private repository that CapRover has access to (env: CAPROVER_IMAGE_NAME)
  -t, --appToken <value>          app Token (env: CAPROVER_APP_TOKEN)

The -t option duplicates --tarFile and --appToken. This source part

https://github.com/caprover/caprover-cli/blob/master/src/commands/deploy.ts#L179-L204

-t now works for tarFile, since tarFile is at the top of the source. Token does not work with -t, --appToken is always required. (This is the current workaround)

Which single letter option should be replaced.

fu-sen avatar Sep 13 '22 07:09 fu-sen

This error caused me to lose almost a day of work, and I was on the verge of giving up on using this tool.

edson-gaspar avatar Feb 01 '24 18:02 edson-gaspar