androidpublisher-get-version-code

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2024 License: Apache-2.0 Imports: 15 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

androidpublisher-get-version-code

Get latest version code from Google Play Developer API

Install

You can download pre-built binaries from Releases.

Or, using install.sh:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/takumakei/androidpublisher-get-version-code/refs/heads/main/install.sh)" -- latest

Or, you can build and install using Go like below:

go install github.com/takumakei/androidpublisher-get-version-code@latest

Usage

Usage of androidpublisher-get-version-code:
  -credentials CREDENTIALS
        Gcloud service account credentials with the JSON key type to access Google Play Developer API.
        If not given, the value will be checked from the environment variable CREDENTIALS.
        Alternatively to entering CREDENTIALS in plaintext, it may also be specified using the
        "@env:" prefix followed by an environment variable name, or the
        "@file:" prefix followed by a path to the file containing the value.

  -jmespath-expr JMESPATH_EXPR
        JMESPath expression applying to the result.
        If not given, the value will be checked from the environment variable JMESPATH_EXPR.

  -output-style OUTPUT_STYLE
        Output style selector:
          - highest
            The highest build number across all tracks
          - production, beta, alpha, internal
            Select the track
          - response
            The JSON of TracksListResponse
        If not given, the value will be checked from the environment variable OUTPUT_STYLE.
        If none is specified, `highest` is used.

  -package-name PACKAGE_NAME
        Package name of the app in Google Play Console. For example com.example.app
        If not given, the value will be checked from the environment variable PACKAGE_NAME.

  -time-limit TIME_LIMIT
        Specifies the duration for how long to wait for a response from the API call.
        If not given, the value will be checked from the environment variable TIME_LIMIT.
         (default 30s)
  -version
        print version information

Credentials

See Collect your Google credentials.

Example

$ androidpublisher-get-version-code --package-name com.example.app --output-style internal
{
  "track": "internal",
  "name": "1.0.0",
  "code": 1
}
$

https://github.com/codemagic-ci-cd/cli-tools/blob/master/docs/google-play/get-latest-build-number.md

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址