fastlane-cert

1.0.0 • Public • Published

fastlane-cert

NPM version Build Status Coverage Status

Node wrapper for Ruby Fastlane Cert module

example

 
var cert = require('fastlane-cert')
 
cert({
    user       : 'firstname@email.com',
    path       : '/Users/username/appname appname.xcodeproj'
}, (err, result) => {
    console.log(`STDOUT:\n${result.stdout}`)
    console.log(`STDERR:\n${result.stderr}`)
 
    if (err) {
        if (err.killed) console.error(`Terminated: ${err.signal}`)
        if (err.code) console.error(`Exit Code: ${err.code}`)
        console.error(err.message)
    }
})
 

api

var cert = require('fastlane-cert')
 

cert([options],[callback])

Accepts options as an object; see tables below for a list of both runtime options, and cert options.

Cert Options

Cert Option Example Description Command Executed
output { output: outputDirectoryPath } generates the cert in a specific directory -o {outputDirectoryPath}
teamId(string) { teamId:'ekjo' } The ID of your team if you're in multiple teams -b {teamId}
teamName(string) { teamName:'teamA' } The name of your team if you're in multiple teams -l {teamName}
keychainPath(string) { keychainPath : '/' } Path to a custom keychain -k {keychainPath}
development(boolean) { development:true } Create a development certificate instead of a distribution one --development
force (boolean) { force:true } Create a certificate even if an existing certificate exists --force

Runtime options

Runtime Option Example Description
timeout (number) { timeout:0 } specify when to exit execution in case of error
password (string) {password:''} app store password
path (string) {path:'/'} path of directory where Cert executes

install

With npm do:

npm install --save fastlane-cert

testing

npm test

coverage

npm run view-cover

This will output a textual coverage report.

npm run open-cover

This will open an HTML coverage report in the default browser.

Package Sidebar

Install

npm i fastlane-cert

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gege