Feature branch staging environments with netlify and git.
Easily deploy feature branches to indiviudal subdomains on netlify.
$ npm install -g netlify-git-branch
$ netlify-git-branch COMMAND
running command...
$ netlify-git-branch (--version)
netlify-git-branch/3.0.0 linux-x64 node-v18.18.2
$ netlify-git-branch --help [COMMAND]
USAGE
$ netlify-git-branch COMMAND
...
Delete netlify staging subdomain for this branch
USAGE
$ netlify-git-branch delete NAME
ARGUMENTS
NAME Name is prefixed onto the git branch name. For Example on branch 'my-feature' and a name of 'my-site' the domain
will be 'https://my-site-my-feature.netlify.app'.
DESCRIPTION
Delete netlify staging subdomain for this branch
EXAMPLES
$ netlify-git-branch delete my-site
See code: src/commands/delete/index.ts
Deploy branch to netlify staging subdomain
USAGE
$ netlify-git-branch deploy NAME [--dir <value>] [--assert <value>]
ARGUMENTS
NAME Name is prefixed onto the git branch name. For Example on branch 'my-feature' and a name of 'my-site' the domain
will be 'https://my-site-my-feature.netlify.app'.
FLAGS
--assert=<value> Check deployed site using CSS <selector>
--dir=<value> [default: dist] Deploy site from <dir>
DESCRIPTION
Deploy branch to netlify staging subdomain
EXAMPLES
$ netlify-git-branch deploy my-site --dir dist
See code: src/commands/deploy/index.ts
Display help for netlify-git-branch.
USAGE
$ netlify-git-branch help [COMMANDS] [-n]
ARGUMENTS
COMMANDS Command to show help for.
FLAGS
-n, --nested-commands Include all nested commands in the output.
DESCRIPTION
Display help for netlify-git-branch.
See code: @oclif/plugin-help