This project is a fastlane plugin. To get started with fastlane-plugin-lastpass
, add it to your project by running:
fastlane add_plugin lastpass
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 protected]" 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: "[email protected]", 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) |
To run both the tests, and code style validation, run
rake
To automatically fix many of the styling issues, use
rubocop -a
This plugin use the LastPass ruby gem by Dmitry Yakimenko
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.
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.