How will split-testing affect the netlify deploy and publishing by netlify-cli

Hi,

We’re considering using split testing on Netlify for a specific initiative. Do you think this will cause issues with or be prevented by the build triggered by netlify-cli?

Thank you!

Hi @clair-hu-525,

Split testing cannot be used with CLI-only deploys as it relies on branch-deploy feature. So, a Git based deploy is a must for Split Testing.

yeah, i have both git based deploy and cli deploy on that site. so wondering how will split-testing affect the netlify deploy and publishing by netlify-cli

Split testing is divided by branches. So, anything that’s not split would be available only at the deploy URL. However, if you deploy using CLI with the --prod flag, that would publish to the production and thus, would be used in Split Testing. However, CLI doesn’t support branch deploys, so branches would remain unaffected.

sounds good, i am using CLI with the --prod flag. it sounds like split testing will take care of publishing no matter using CLI or branch deploy. thank you!