Skip to content

A command line tool that simplifies the process of creating certificates, signing .raw packages and validating .pkpass packages for Apple Wallet.

Notifications You must be signed in to change notification settings

jonniespratley/passbook-cli

Repository files navigation

#passbook-cli

Build Status

Docs

Visit the doclets site.

Description

A command line tool that simplifies the process of creating certificates, signing .raw packages and validating .pkpass packages for Apple Wallet.

Install

To install passbook-cli from npm, run:

$ npm install -g passbook-cli

Usage

$ passbook-cli --help

1. Create PEM Files

Create pem certificate and key for signing a .raw pass package.

$ passbook create-pems \
	--input=./src/certificates/pass.io.passbookmanager.test.p12 \
	--output=./temp \
	--passphrase=test

2. Create .pkpass package

Create a .pkpass package from a .raw package.

$ passbook create-pass \
	--name=test-pass \
	--type=coupon \
	--output=./temp

Command available

$ passbook-cli
$ passbook
Commands:

    create-pass [options]  Create a .raw pass package from pass type templates.
    create-pems [options]  Create the required certkmifcate and key from a .p12
    config [key] [value]   Get and set options

  Options:

    -h, --help     output usage information
    -d, --debug    enable debugger
    -V, --version  output the version number

  Examples:

    $ custom-help --help
    $ custom-help -h

$ passbook create-pems --input ./src/certificates/pass.io.passbookmanager.test.p12 --passphrase test --output ./tmp

Environment Variables

$ export PASS_TYPE_IDENTIFIER=XXX
$ export TEAM_IDENTIFIER=XXX

License

Copyright (c) 2016 Jonnie Spratley MIT License

Acknowledgments

Built using generator-commader.

About

A command line tool that simplifies the process of creating certificates, signing .raw packages and validating .pkpass packages for Apple Wallet.

Resources

Stars

Watchers

Forks

Packages

No packages published