I have a login flow which uses the visual flow and displays a welcome message to the user when they login.I don't see this in metadata ,How can I deploy the login flow using ANT Migration tool.
Login Flow is nothing but Visual Flow that can be sent into login for each profile.
So when you want to transfer Login Flow.You need below components.
Visual Flow(Login Flow that you have created).
Custom Object(You must storing flows information in custom object ).
So when you want to deploy Login Flows then you can modify your package.xml like this:
<?xml version="1.0" encoding="UTF-8"?> <Package xmlns="http://soap.sforce.com/2006/04/metadata"> <types> <members>*</members> <name>FlowDefinition</name> </types> <types> <members>*</members> <name>CustomObject</name> </types> <version>40.0</version> </Package>
The above code is just a sample.You may need to add more components like custom field of objects or Screen of Visual Flows.
You can refer the below link:
Let me know if it helps.