cli library
CLI contributions for Routed's Node and Cloudflare runtime package.
This library is intended for the Dart VM CLI process. Do not import it from
a Worker entrypoint; use cli_provider.dart when the application engine
must remain compilable for JavaScript.
Classes
- RoutedNodeCliProvider
- Registers CLI commands owned by the routed_node runtime package.
- RoutedNodeDeployCommand
- Builds and deploys a Routed application on a Node-compatible target without user-authored shell files.
Functions
-
generateCloudflareWorkerEntry(
{required String importPath, String factory = 'engine', Iterable< String> durableObjectClasses = const <String>[]}) → String - Generates the Dart Worker entrypoint used by a Cloudflare deployment.
-
generateCloudflareWorkerWrapper(
String compiledPath, Iterable< String> durableObjectClasses, {Map<String, int> containerPorts = const <String, int>{}, String? ssrEntry}) → String - Generates the JavaScript wrapper that exports Cloudflare bindings.
Typedefs
- CloudflareDeployCommand = RoutedNodeDeployCommand
- Alias for integrations that refer to the Cloudflare deployment workflow.
-
DeploymentProcessRunner
= Future<
int> Function(String executable, List<String> arguments, String workingDirectory) - Executes an external deployment process and returns its exit code.