init, link, pull, create, examples
Add a workspace to your repository, link it to a project, pull what the project already has, start a project from an example app, and list the examples.
init
nulvless init [--org <slug>] [--project <slug>]
Creates the workspace in this folder: nulvless/nulvless.jsonc,
nulvless/functions/, nulvless/templates/ and a .gitignore that keeps local
env files out of git.
Fails if the folder already has one, or if it is inside the nulvless/ folder of
another workspace.
nulvless init --org acme --project shoplink
nulvless link [--org <slug>] [--project <slug>]
Links the workspace to a project by writing organization and project into
nulvless/nulvless.jsonc, so every command run in it acts on that project
without --org and --project. Without flags it asks which organization and
project. Replacing a project the workspace is already linked to asks first.
nulvless link
nulvless link --org acme --project shoppull
nulvless pull [--env <environment>]
Writes every Edge Function of the project and the environment's own templates
into the workspace, such as when you start versioning a project made in the
console. It asks once before overwriting anything. Secrets stay out; pull them
per function with secrets pull.
nulvless pull
nulvless pull --env staging --yes--env <environment>default mainEnvironment whose templates to pull. Functions belong to the project, so they are the same in every environment.
functions pull and templates pull do one half each.
create
nulvless create <dir> --example <name>
Creates a new project folder from an example app.
nulvless create my-app --example auth-nextjs<dir>RequiredFolder to create.
--example <name>RequiredExample app to copy. nulvless examples --kind app lists them.
examples
nulvless examples [--kind <kind>]
Lists the example functions, apps and communication templates in github.com/nulvless/examples.
nulvless examples --kind function--kind <kind>function | app | templateOnly one kind of example.