This project is a fastlane plugin. To get started with
fastlane-plugin-lastpass, add it to your project by running:
fastlane add_plugin lastpass
About the LastPass plugin
Easily sync your Apple ID credentials stored in LastPass with your keychain. This action may require user input if two factor authentication is enabled for the account you're logging in with.
Find out the id for the crendentials you wish to sync. You can do so by executing the
lastpass action with the list option enabled.
fastlane run lastpass username:"email@example.com" password:"mysuperpassword" list:true
Create a file named
lastpass.yaml containing the ids of your vault items.
vault-items: - "5576281234514771203" - "3942334544195479218"
Use the fastlane
lastpass action standalone or as part of a lane. If you are using it on CI system, you probably don't want to have an account with two factor authentication enabled since it requires manual text entry during execution.
Check out the example
Fastfile to see how to use this plugin. Try it by cloning the repo, running
fastlane install_plugins and
bundle exec fastlane test.
desc "Sync LastPass credentials with the local keychain" lane :syncCredentials do lastpass(username: "firstname.lastname@example.org", password: "mysuperpassword", overwrite: true) end
|Parameter||Description||Optional (default value)|
|username||Your LastPass username||Required|
|password||Your LastPass password||Required|
|overwirte||In case the passwords don't match, should the existing passwords be replaced||Optional (false)|
|list||List available credentials in the account, do not modify the keychain||Optional (false)|
Run tests for this plugin
To run both the tests, and code style validation, run
To automatically fix many of the styling issues, use
This plugin use the LastPass ruby gem by Dmitry Yakimenko
Issues and Feedback
For any other issues and feedback about this plugin, please submit it to this repository.
If you have trouble using plugins, check out the Plugins Troubleshooting guide.
Using fastlane Plugins
For more information about how the
fastlane plugin system works, check out the Plugins documentation.
fastlane is the easiest way to automate beta deployments and releases for your iOS and Android apps. To learn more, check out fastlane.tools.