Skip to content
/ avm Public

Appium setup - Repository to maintain (Appium-Version-Manager) avm since Appium version > 1.5

Notifications You must be signed in to change notification settings

rcastelino/avm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

avm

Appium version manager, no subshells, no profile setup, no convoluted api, just simple.

Installation

$ npm install -g appium-version-manager-1.5

or

$ make install

to $HOME. Prefix later calls to avm with PREFIX=$HOME

$ PREFIX=$HOME make install

Installing Binaries

Install a few appium versions:

$ avm latest
$ avm 1.5.0
$ avm 1.6.5

Type avm to prompt selection of an installed appium. Use the up / down arrow to navigate, and press enter or the right arrow to select, or ^C to cancel:

$ avm

  1.5.0
ο 1.6.4
  1.6.5

Use or install the latest official release:

$ avm latest

Switch to the previous version you were using:

$ avm prev

Removing Versions

Remove some versions:

$ avm rm 1.5.0 1.6.4

Instead of using rm we can simply use -:

$ avm - 1.6.4

Appium Usage

When running multiple versions of appium, we can target them directly by asking avm for the binary path:

$ avm bin 1.6.5
/usr/local/avm/versions/1.6.5/node_modules/appium/bin/appium.js

Or by using a specific version through avm's use sub-command:

$ avm use 1.6.5 -p 4723 -U c9ccb3bs43ef70cb0d79a113c21a6b4bbee03e28 --app com.app.bundle.id

Usage

Output from avm --help:

Usage: avm [options] [COMMAND] [args]

Commands:

  avm                            Output versions installed
  avm latest                     Install or activate the latest appium release
  avm <version>                  Install appium <version>
  avm use <version> [args ...]   Execute appium <version> with [args ...]
  avm bin <version>              Output bin path for <version>
  avm rm <version ...>           Remove the given version(s)
  avm prev                       Revert to the previously activated version
  avm --latest                   Output the latest appium version available
  avm ls                         Output the versions of appium available

Options:

  -V, --version   Output current version of avm
  -h, --help      Display help information

Aliases:

  which   bin
  as      use
  list    ls
  -       rm

Details

avm by default installs appium to /usr/local/avm/versions, from which it can see what you have currently installed, and activate previously installed versions of appium when avm <version> is invoked again.

Activated appium binary is then installed by symlinking to /usr/local/bin/appium.

To alter where avm operates simply export AVM_PREFIX to whatever you prefer. It defaults to /usr/local

License

(The MIT License)

Copyright (c) 2014 Abhinav Singh <[email protected]>

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Appium setup - Repository to maintain (Appium-Version-Manager) avm since Appium version > 1.5

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published