-
Notifications
You must be signed in to change notification settings - Fork 368
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How do you do a preview deploy? #44
Comments
This repo and software is deprecated @NullVoxPopuli . However I can still answer your question. There is no way to do a branch or preview deploy from the CLI. Only production (published) and draft (not published, can be published later if you want) are supported from the command line. Our concept of deploy previews and branch deploys REQUIRE git backed builds, since they are about branches and PR's and we must build them to classify them as such. I understand that you are using the CLI in a git-backed environment, but our system is currently limited to considering git-backed deploys as being "built directly from git in our CI", and only those deploys will have the additional categories of deploy types available. cc @bcomnes and @DavidWells as you think about the next CLI this is a feature request I've heard before. |
If this tool is deprecated, what's the recommended way to deploy from a ci environment? |
netlifyctl was what was current in 2018. In 2019 and beyond, this repo is the best-supported CLI tool for Netlify. (edited 17 Dec 2019) |
Related: #275 |
@fool I understand your comment is old but it was a bit confusing to find that that repo claims to be deprecated and redirects users back to this repo. It's probably a good idea to update your comment to reflect that change to avoid any further confusion. |
I think you figured it out ok :) but I updated the comment anyway per your suggestion. |
only seeing this in the deploy help:
I'm wanting to script the deploy so I can avoid using netlify's build tools
(I'm using gitlab and have a pretty slick setup so far)
my current production deploy script is:
was hoping to be able to do something for branches / previews as well.
thanks!
The text was updated successfully, but these errors were encountered: