Coder Social home page Coder Social logo

popisdead / capacitor-set-version Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hausenntechnologies/capacitor-set-version

0.0 0.0 0.0 2.43 MB

capacitor-set-version

License: MIT License

Shell 0.60% JavaScript 2.19% Batchfile 0.18% TypeScript 97.03%

capacitor-set-version's Introduction

capacitor-set-version

Write version number and build number for Android and iOS on ionic/capacitor projects


Build With
oclif semantic release

Installation

Use with npx without install:

  npx capacitor-set-version [options] path

install as a development dependency:

  npm i -D capacitor-set-version

or install globally:

  npm i -g capacitor-set-version

How it works

Calling capacitor-set-version will set your Android and iOS app versions to package.json version as well as increment the app build number.

For Android, build number means the versionCode option, on iOS this will use CFBundleVersion.

If you want, you can specify both version and build number using options flags.

Options

Flags bellow are used to change the default behavior.

USAGE
  $ capacitor-set-version DIR

ARGUMENTS
  DIR  Capacitor project root directory

OPTIONS
  -a, --android        Android only
  -b, --build=10       Set specific build
  -h, --help           Show help
  -i, --ios            iOS only
  -m, --info           Print tool version
  -q, --quiet          Print only error messages
  -v, --version=x.x.x  Set specific version

Usage

Examples

// Set version to 1.2.3
capacitor-set-version -v 1.2.3 ./

// Set version of project on folder ./my-app
capacitor-set-version -v 1.2.3 ./my-app

// Set android version with specific build number for android
capacitor-set-version -a -b 1546 ./

// Set iOS version only
capacitor-set-version -i ./

Hausenn Technologies

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.