Miss any of our Open RFC calls?Watch the recordings here! »

google-playstore-publisher

1.0.7 • 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);
}

Install

npm i google-playstore-publisher

DownloadsWeekly Downloads

1

Version

1.0.7

License

MIT

Unpacked Size

5.66 kB

Total Files

4

Last publish

Collaborators

  • avatar