google-playstore-publisher

2.0.2 • Public • Published

google-playstore-publisher

Upload APKs to Google Play with api or cli (command line)

This package offers api and cli tool to publish apk in the Google Play Store

Authentication

Steps to get your service account file from Google Cloud Platform

It can take upto 24 hours to grant permission to service account, so don't worry if you get authentication error

Install

npm install -g google-playstore-publisher

or

yarn global add google-playstore-publisher

Usage

Use the CLI

playstore \ 
    -t=internal \ # values can be (internal, alpha, beta, production)
    -p=com.example.android \
    -k=playstore_service_account.json \ 
    -a=./app-release.apk

or the JavaScript API

const playstore = require('google-playstore-publisher');
const path = require('path');

try {
    const data = await playstore.publish({
      keyFilePath: path.join(
        __dirname,
        '../../../playstore-service-account.json'
      ),
      packageName: 'com.example.android',
      track: 'internal', // value (internal, alpha, beta, production)
      apkFilePath: path.join(__dirname, '../../../app-release.apk')
    });
    console.log(data);
} catch (e) {
  console.log(e);
}

Package Sidebar

Install

npm i google-playstore-publisher

Weekly Downloads

17

Version

2.0.2

License

MIT

Unpacked Size

8.52 kB

Total Files

4

Last publish

Collaborators

  • mr-yogesh