Comments (15)
@bcomnes: you should mark the npm package as deprecated then...
from cli.
This cli is no longer supported, please switch to https://github.com/netlify/netlifyctl
from cli.
SO proud to say that one of my Junior dev's found her own solution to this. Just run these commands in sequence in the your project's directory:
rm -fr node_modules
rm -fr package-lock.json
npm cache clean --force
npm install
note: it's npm cache that's causing the biggest issues in our situation. Hope this helps
from cli.
This one.
from cli.
@bcomnes Suggestion: Just make it as simple as the Now CLI or Surge CLI. No need for netlify deploy
and all.
Just simple command netlify
& it will deploy current directory then ask for site name, etc.. in the terminal.
Why waste so much time on architecture when your competitors have already solved the same problem? I prefer both NOW & SURGE CLIs but I ❤️ Netlify & CLI can be a huge boon
from cli.
Agreed, I'll look into to doing that. It would be nice to find a way to ship the go bin as an npm package so people can switch over to that without integrating a peer dep.
from cli.
@bcomnes As a first step though, I agree that it would be super helpful to mark the npm package as deprecated and provide a link out to the new cli in the deprecation message.
from cli.
Now this doesn't work in Node 10, you really had ought to update your docs to use netlifyctl
and provide info for the "old" netlify-cli
package as a fallback. Or at the very least make the intended deprecation and fact that you ought to use netlifyctl
if you're on Node 10+ a lot more obvious.
from cli.
In addition to marking the npm package as deprecated a bigger notice in the README would be helpful as well. I had to read it several times before I noticed it included a deprecation notice.
from cli.
Recent development, we are revisiting plans around the Node netlify api lib and CLI. Will follow up with more details asap, but we are thinking of resurrecting a JS/Node cli.
from cli.
Thanks so much guy, you helpout me !!! # @singuista
from cli.
Any updates on this? Should I uninstall the old cli and install this new cli going forward?
from cli.
Apologies for the delayed response.
We are working on/exploring a revamped node-cli with a new architecture that will be flexible enough for some really exciting developments we have coming down the pipe. That won't be ready for a bit, so in the meantime, I'll go ahead and do a little bit of cleanup regarding the lock files mentioned by @singuista and cut a patch release to see if that fixes some of the showstoppers on this codebase.
Also github.com/netlify/netlifyctl is a viable and working option, however I do sympathize that go tooling doesn't have the cleanest integration path that npm published tools have with most web projects that are already using npm/yarn.
Hold tight!
If you have a moment as well, I would love to hear some feedback what you want most out of the cli experience. Trying to avoid the web UI and use the console only? Custom deploys from private CI environments? Advanced automation integrations?
from cli.
Ok npm install netlify-cli@latest -g
Tested on node 10, can confirm its working.
from cli.
@bcomnes so, which cli out of the two is deprecated?
from cli.
Related Issues (20)
- CONTRIBUTING.md link in Pull Request Checklist is invalid
- Can anyone of you please explain me why this error is showing?
- switching branches causes crash
- Running netlify dev causes esm loader error
- CLI crash on loading of website HOT 1
- (dev) Deno crashes with PermissionDenied: Requires sys access to "cpus", run again with the --allow-sys flag HOT 1
- Please replace with a clear and descriptive title
- Code injection during dev mode
- Function file changes ignored by `netlify dev --framework "#static"` while using `vite build --watch` HOT 2
- Netlify cli crashes anytime an error is thrown from an express route HOT 2
- bug: import `execa` not found `bun install` failed for `postinstall` script HOT 3
- Error when running Playwright tests on 17.26.1
- `netlify serve` does not work with an Astro project using SSR and middleware HOT 4
- adsad
- Completions don't work
- Shrinkwrap is forcing insecure dependencies HOT 2
- Error: EISDIR: illegal operation on a directory, readlink
- Misleading error message when an invalid `NETLIFY_AUTH_TOKEN` is provided
- Impossible to update braces to ^3.0.3 HOT 2
- CLI cannot handle non Error-typed thrown errors
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cli.