- Do you want to request a feature or report a bug?
bug
- What is the current behavior?
When I type netlify deploy it responding
→ netlify deploy
› Error: Not Found
- If the current behavior is a bug, please provide the steps to reproduce.
Type netlify deploy and execute
- What is the expected behavior?
The command should deploy the site
- Please mention your node.js, and operating system version.
netlify-cli/2.2.1
Mac darwin-x64
node-v10.12.0
Do you have a netlify.toml in your working directory?
No. I don't have netlify.toml.
Hey @arunghosh is the site linked locally?
A.k.a. have you run netlify link in the current working directory of your site?
No. I don't have
netlify.toml.
For me it worked after adding one, netlify link would probably create one right?
For me it worked after adding one, netlify link would probably create one right?
No, not yet. I would like to expand netlify.toml maintenance/creation at some point though. A netlify.toml isn't required.
If you are still having this issue, can you run:
DEBUG=* netlify deploy
And see if there is anything of question in the output?
Running netlify status should give you information regarding the link state of the cwd.
Thank you all. The issue go resolved by linking to a new site. The issue was linking.
Thank you for the followup. We will continue to improve that process with time.
I have a similar issue and I have reported it here - https://github.com/netlify/cli/issues/213
netlify deploy --site=[your site id] should work too without needing to link. Probably more useful for certain CI situations.
Otherwise look for .netlify folder and remove it as it could contain a previous site id
remove the .netlify folder, and run netlify link in your local repository. You will be prompted to add your site ID which is your 'API ID' in Settings > General > Site Details of Netlify dashboard.
Most helpful comment
Otherwise look for
.netlifyfolder and remove it as it could contain a previous site id