Skip to content

slavshik/fb-instant-tools

Repository files navigation

fb-instant-tools

Tool for uploading Facebook Instant Game bundle

oclif Version Downloads/week License

Usage

fb-instant-tools - package name and fb-instant is the binary. Using npx:

npx fb-instant-tools token APP_ID 'APP_SECRET' # retrieve a token
npx fb-instant-tools upload APP_ID 'ACCESS_TOKEN' # upload bundle ./Archive.zip

Or install as global dependency:

npm install --global fb-instant-tools

And then use fb-instant binary:

fb-instant token APP_ID 'APP_SECRET' # retrieve a token
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