Skip to content
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

feat(command-lm): merge netlify-lm-plugin to CLI #1489

Merged
merged 50 commits into from
Feb 14, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
50 commits
Select commit Hold shift + click to select a range
85acf08
feat(lm): add lm and lm:info command
keiko713 Oct 29, 2020
3756839
feat(lm): add listr to dependency
keiko713 Oct 29, 2020
9b6e263
feat(lm): remove needless Promise, fix GitValidators import
keiko713 Dec 7, 2020
5e7da18
feat(lm): fix lint
keiko713 Dec 7, 2020
57f53e5
feat(lm): fix lint, add analytics
keiko713 Dec 13, 2020
f746b2d
feat(lm): run prettier
keiko713 Dec 13, 2020
e27215a
feat(lm): add lm:install command
keiko713 Dec 13, 2020
7c5fddc
feat(lm): add lm:setup command
keiko713 Dec 13, 2020
0efe5da
feat(lm): add a test
keiko713 Dec 22, 2020
bae9c89
feat(lm): apply prettier
keiko713 Dec 22, 2020
009dc88
feat(lm): update test
keiko713 Dec 22, 2020
0c352e9
feat(lm): update how to log an error with provisioning
keiko713 Dec 22, 2020
ae5adb3
refactor: extract common steps into a separate file
erezrokah Dec 23, 2020
304d909
refactor: extract steps from function
erezrokah Dec 23, 2020
50f0133
refactor: switch to async I/O, use exec-fetcher
erezrokah Dec 23, 2020
fe547a3
test: fix sitename
erezrokah Dec 23, 2020
1147474
refactor: remove duplicated logic for checking bin in path
erezrokah Dec 23, 2020
4bac597
fix(command-lm-setup): add http proxy options
erezrokah Dec 23, 2020
4ef23c1
chore: fix linting
erezrokah Dec 23, 2020
6478663
test(command-lm): add SHELL env variable
erezrokah Dec 23, 2020
79a721d
fix: fix windows install
erezrokah Jan 5, 2021
b89b77e
chore: fix lint errors
erezrokah Jan 5, 2021
f3904e1
fix: windows install
erezrokah Jan 13, 2021
fc84669
fix: add missing semver dependency
erezrokah Jan 28, 2021
73bd953
fix: windows install
erezrokah Feb 3, 2021
a319829
test: improve test
erezrokah Feb 3, 2021
1ca847a
fix: use script raw content
erezrokah Feb 3, 2021
3ecb2db
test: use mock API to simulate provisioning large media
erezrokah Feb 4, 2021
48e2514
refactor: code cleanup
erezrokah Feb 4, 2021
c886b1d
fix: use git-lfs version instead of --version to support old versions
erezrokah Feb 4, 2021
57cb506
test: fix tests
erezrokah Feb 4, 2021
cf82568
feat: add missing docs
erezrokah Feb 5, 2021
3a18a1a
refactor: use throw instead of Promise.reject
erezrokah Feb 5, 2021
f6db9bb
refactor: use throw instead of Promise.reject
erezrokah Feb 5, 2021
411b891
fix: use error instead of log
erezrokah Feb 5, 2021
bc4f2f0
fix: print error with stacktrace
erezrokah Feb 5, 2021
75fbebb
refactor: rename isBinInPath to isUnixBinPath
erezrokah Feb 7, 2021
2b02fe0
refactor: remove windows duplicated logic, inline powershell script
erezrokah Feb 7, 2021
417d5dd
test: fix windows test
erezrokah Feb 8, 2021
c13f4ed
fix: add shebangs
erezrokah Feb 8, 2021
6e88890
style: format bash.sh
erezrokah Feb 8, 2021
79b4ff3
fix: add missing await
erezrokah Feb 8, 2021
f566ac0
fix: windows install
erezrokah Feb 9, 2021
21827c9
fix: use /src/utils/lm/scripts
erezrokah Feb 10, 2021
c31ce45
test: fix windows test
erezrokah Feb 10, 2021
c7b7d7c
refactor: improve error handling
erezrokah Feb 10, 2021
8735ceb
fix: fix helper version updates, report better errors
erezrokah Feb 11, 2021
4a8aa66
fix(command-lm): add missing docs
erezrokah Feb 11, 2021
ff54528
fix(command-lm): remove redundant examples
erezrokah Feb 11, 2021
76fd489
fix: update creds helper version
erezrokah Feb 11, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ jobs:
env:
# GitHub secrets are not available when running on PR from forks
# We set a flag so we can skip tests that access Netlify API
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
IS_FORK: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork == true }}
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
# NETLIFY_TEST_GITHUB_TOKEN is used to avoid reaching GitHub API limits in exec-fetcher.js
NETLIFY_TEST_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Get test coverage flags
id: test-coverage-flags
run: |-
Expand Down
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ See the [CLI command line reference](https://cli.netlify.com/commands/) to get s
* [functions](#functions)
* [init](#init)
* [link](#link)
* [lm](#lm)
* [login](#login)
* [open](#open)
* [sites](#sites)
Expand Down Expand Up @@ -138,6 +139,17 @@ Configure continuous deployment for a new or existing site

Link a local repo or project folder to an existing site on Netlify

### [lm](/docs/commands/lm.md)

Handle Netlify Large Media operations

| Subcommand | description |
|:--------------------------- |:-----|
| [`lm:info`](/docs/commands/lm.md#lminfo) | Show large media requirements information. |
| [`lm:install`](/docs/commands/lm.md#lminstall) | Configures your computer to use Netlify Large Media. |
| [`lm:setup`](/docs/commands/lm.md#lmsetup) | Configures your site to use Netlify Large Media. |


### [login](/docs/commands/login.md)

Login to your Netlify account
Expand Down
11 changes: 11 additions & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,17 @@ Configure continuous deployment for a new or existing site

Link a local repo or project folder to an existing site on Netlify

### [lm](/docs/commands/lm.md)

Handle Netlify Large Media operations

| Subcommand | description |
|:--------------------------- |:-----|
| [`lm:info`](/docs/commands/lm.md#lminfo) | Show large media requirements information. |
| [`lm:install`](/docs/commands/lm.md#lminstall) | Configures your computer to use Netlify Large Media. |
| [`lm:setup`](/docs/commands/lm.md#lmsetup) | Configures your site to use Netlify Large Media. |


### [login](/docs/commands/login.md)

Login to your Netlify account
Expand Down
11 changes: 11 additions & 0 deletions docs/commands/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,17 @@ Configure continuous deployment for a new or existing site

Link a local repo or project folder to an existing site on Netlify

### [lm](/docs/commands/lm.md)

Handle Netlify Large Media operations

| Subcommand | description |
|:--------------------------- |:-----|
| [`lm:info`](/docs/commands/lm.md#lminfo) | Show large media requirements information. |
| [`lm:install`](/docs/commands/lm.md#lminstall) | Configures your computer to use Netlify Large Media. |
| [`lm:setup`](/docs/commands/lm.md#lmsetup) | Configures your site to use Netlify Large Media. |


### [login](/docs/commands/login.md)

Login to your Netlify account
Expand Down
97 changes: 97 additions & 0 deletions docs/commands/lm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
---
title: Netlify CLI lm command
---

# `lm`

## About

<!-- AUTO-GENERATED-CONTENT:START (GENERATE_COMMANDS_DOCS) -->
Handle Netlify Large Media operations
The lm command will help you manage large media for a site


**Usage**

```bash
netlify lm
```

**Flags**

- `debug` (*boolean*) - Print debugging information
- `httpProxy` (*string*) - Proxy server address to route requests through.
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server

| Subcommand | description |
|:--------------------------- |:-----|
| [`lm:info`](/docs/commands/lm.md#lminfo) | Show large media requirements information. |
| [`lm:install`](/docs/commands/lm.md#lminstall) | Configures your computer to use Netlify Large Media. |
| [`lm:setup`](/docs/commands/lm.md#lmsetup) | Configures your site to use Netlify Large Media. |


**Examples**

```bash
netlify lm:info
netlify lm:install
netlify lm:setup
```

---
## `lm:info`

Show large media requirements information.

**Usage**

```bash
netlify lm:info
```

**Flags**

- `debug` (*boolean*) - Print debugging information
- `httpProxy` (*string*) - Proxy server address to route requests through.
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server

---
## `lm:install`

Configures your computer to use Netlify Large Media.
It installs the required credentials helper for Git,
and configures your Git environment with the right credentials.

**Usage**

```bash
netlify lm:install
```

**Flags**

- `force` (*boolean*) - Force the credentials helper installation

---
## `lm:setup`

Configures your site to use Netlify Large Media.
It runs the install command if you have not installed the dependencies yet.

**Usage**

```bash
netlify lm:setup
```

**Flags**

- `skip-install` (*boolean*) - Skip the credentials helper installation check
- `force-install` (*boolean*) - Force the credentials helper installation
- `debug` (*boolean*) - Print debugging information
- `httpProxy` (*string*) - Proxy server address to route requests through.
- `httpProxyCertificateFilename` (*string*) - Certificate file to use when connecting using a proxy server

---

<!-- AUTO-GENERATED-CONTENT:END -->
Loading