Sign inSign up

williamjackson/netlify-cli

By williamjackson

•Updated about 2 years ago

Interact with Netlify from the comfort of your CLI.

Image
0

10K+

williamjackson/netlify-cli repository overview

⁠docker-netlify-cli

A Docker image for netlify/cli⁠.

docker image pull williamjackson/netlify-cli

⁠Usage

In your Netlify user settings⁠, create a personal access token. Set the environment variable NETLIFY_AUTH_TOKEN inside the container.

The default working directory in the container is /project, so mount your project directory into the container at that location.

Specify the Netlify CLI command after the image name.

docker container run -it \
    -e NETLIFY_AUTH_TOKEN=<personal_access_token> \
    -v /path/to/project:/project \
    williamjackson/netlify-cli \
    deploy

⁠Compose

# compose.yaml

services:
  netlify-cli:
    image: williamjackson/netlify-cli
    environment:
      NETLIFY_AUTH_TOKEN: <personal_access_token>
    volumes:
      - /path/to/project:/project
# docker compose run netlify-cli deploy

⁠Source repository

williamjacksn/docker-netlify-cli⁠

⁠A note on versions

The netlify/cli⁠ project publishes new versions multiple times a day, but this image is only updated at most once a day. If you want to pin a version, and I suggest you do, check the releases⁠ section of this repository to see what versions are available.

Tag summary

Content type

Image

Digest

sha256:5cdc96349…

Size

442.7 MB

Last updated

about 2 years ago

docker pull williamjackson/netlify-cli