This repository consists of a README describing the minimal setup and usage of Netlify CLI, a Dockerfile and install.sh.
Notes. This repository is a private repository and will not be open to the public. The README and other documents, Dockerfiles and Shell scripts included in this repository may not always be correct.
Below are the recommended methods for configuring and using the Netlify CLI.
Docker is recommended.
The description is written assuming use with Docker. Local use is also possible, but we have not tested it. Dockerfile is included in the repository.
install.sh is a Shell script to install Netlify CLI.
If you have created a container following the instructions in the Dockerfile or Dockerfile, the Netlify CLI should already be installed.
If you want to install from scratch, it is convenient to use setup.sh. for example, bash ./install.sh will automatically install Netlify CLI.
Both the Dockerfile and install.sh are written so that the Netlify CLI is installed globally.
Follow Netlify CLI official documentation to login.
# https://docs.netlify.com/cli/get-started/
# https://docs.netlify.com/cli/get-started/#obtain-a-token-with-the-command-line
netlify login
# https://docs.netlify.com/cli/get-started/#automated-setup
netlify init
Build according to Netlify CLI official documentation.
# https://docs.netlify.com/cli/get-started/#run-builds-locally
netlify build
Manual deploys.
Please refer to the official documentation for details
Document: https://docs.netlify.com/cli/get-started/#manual-deploys
netlify deploy