Skip to content

-t option is used with tarFile and appToken #126

Open
@fu-sen

Description

@fu-sen

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions