RoutedNodeDeployCommand class final
Builds and deploys a Routed application on a Node-compatible target without user-authored shell files.
Cloudflare Workers, Netlify, and Vercel are supported targets. An
application that exports createEngine can use the default factory:
routed deploy --target cloudflare
An environment-aware app can opt into the Cloudflare environment factory and declare its platform resources in the generated Wrangler config:
routed deploy --target cloudflare \
--cloudflare-factory environment \
--var AUTH_ORIGIN=https://example.workers.dev \
--d1 AUTH_DB=auth-db:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx \
--r2 ASSETS=app-assets \
--queue JOBS=app-jobs \
--service ANALYTICS=analytics-worker
Durable Objects and containers use repeatable options. The class names must be exported by the application entrypoint:
routed deploy --target cloudflare \
--durable-object COUNTER=Counter \
--container API=ApiContainer|ghcr.io/example/api:latest|8080|2
Use --dry-run to compile and validate the generated deployment without
uploading. Netlify and Vercel use the same command; Vercel accepts
--runtime node or --runtime edge.
Constructors
- RoutedNodeDeployCommand({dynamic logger, dynamic fileSystem, DeploymentProcessRunner? processRunner})
- Creates the deployment command.
Properties
- category → String
-
no setter
- description → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
run(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited