deploy

Deploy a local project to Netzo.

The deploy subcommand deploys a local project to Netzo.

netzo deploy [OPTIONS] [<entrypoint>]
Set defaults for project, entrypoint in netzo.ts to avoid passing options each time Note that the options and arguments passed to the CLI will take precedence over these defaults.
It is recommended to always use the --build flag when deploying a project to production, since it greatly improves the performance of the deployed project.

Options:

OptionDescription
--api-keyThe API key to use (default: Deno.env.get("NETZO_API_KEY"))
--dry-runDry run the initialization process (default: false).
--excludeExclude files that match this pattern
-h, --helpPrints help information
--includeInclude files that match this pattern
--import-mapInclude files that match this pattern
--no-staticDon't include the files in the CWD (default: false)
--buildRuns custom build task (via "deno task build") before deploying
--productionCreate a production (default: false)
--p, --projectThe ID of the project to deploy to

Arguments:

ArgumentDescription
<entrypoint>The file path to the entrypoint file (defaults to netzo.ts)

Examples:

# To deploy a local project (default netzo.ts entrypoint):
netzo deploy --project=<PROJECT_ID>
# To deploy a local project (other entrypoint):
netzo deploy --project=<PROJECT_ID> main.ts
# To deploy a local project after running a build task:
netzo deploy --project=<PROJECT_ID> --build main.
# To deploy a local project and mark it as production:
netzo deploy --project=<PROJECT_ID> --production
# To deploy a local project without static files:
netzo deploy --project=<PROJECT_ID> --no-static
# To ignore the .env file while deploying:
netzo deploy --project=<PROJECT_ID> --exclude=".env"