fb-instant-tools
v0.0.10
Published
Tool for uploading Facebook Instant Game bundle
Downloads
10
Readme
fb-instant-tools
Tool for uploading Facebook Instant Game bundle
Usage
Using npx:
$ npx fb-instant-tools upload APP_ID 'ACCESS_TOKEN'
Or as global dependency:
$ npm install --global fb-instant-tools
$ fb-instant upload APP_ID 'ACCESS_TOKEN' -f path/to/game-bundle.zip -C "Some notes about the bundle"
Or as internal dependency within your package.json
script.
You can also use fb-instant token APP_ID APP_SECRET
to generate the access token.
Commands
fb-instant token ID SECRET
Generates facebook upload token
USAGE
$ fb-instant token ID SECRET
ARGUMENTS
ID App id
SECRET App secret
OPTIONS
-h, --help show CLI help
See code: src/commands/token.ts
fb-instant upload APP_ID ACCESS_TOKEN
Uploads asset to the facebook hosting
USAGE
$ fb-instant upload APP_ID ACCESS_TOKEN
ARGUMENTS
APP_ID App id
ACCESS_TOKEN App access token
OPTIONS
-C, --comment=comment Comment to be added
-f, --file=file Path to zip file
-h, --help show CLI help
See code: src/commands/upload.ts