How to Deploy
There are 2 ways to deploy your projects in Netzo. Note that to use any of these methods, you must first create a project in the UI.
Deploy via CLI
The recommended way to deploy projects is from the command line via the netzo/cli command-line tool. This approach is great for developers who want to use their own editor and development environment. The CLI is also great for CI/CD pipelines.
- IDE: use your preffered editor (e.g. VSCode)
- Hot Reload: preview your changes instantly with
deno run --watch
- GitOps: version control your code (e.g. GitHub)
- CI/CD: integrate pipeline (e.g. GitHub Actions)
- Install the
netzo/cli
command line tool
deno install -Arf https://deno.land/x/netzo/cli/netzo.ts
deno install -Arf https://deno.land/x/netzo/cli/netzo.ts
- Configure your API key as an environment variable
export NETZO_API_KEY=... # Linux / MacOS
set NETZO_API_KEY=... # Windows
export NETZO_API_KEY=... # Linux / MacOS
set NETZO_API_KEY=... # Windows
Create a project in Netzo if you haven't and copy the project UID.
Deploy the project (pass the
--prod
flag to deploy to production)
netzo deploy --project=my-project <entrypoint>
netzo deploy --project=my-project <entrypoint>
See the netzo/cli
page for more details.
Deploy via UI
The easiest way to deploy simple projects and prototypes is via the editor in app.netzo.io. For more complex projects, we recommend setting up local development and deploying via CLI.
See the Creating Projects page for more details.
WARNING
The in-app editor in app.netzo.io is currently in alpha and may have bugs that affect the development experience. We thus recommend taking advantage of traditional local development in the IDE of your choice and use the netzo/cli command-line tool for deployment.