GenerateCommand class

CLI command to generate deep link server-side configuration files.

Produces apple-app-site-association (iOS Universal Links) and assetlinks.json (Android App Links). Each value comes from its flag first and from lib/config/deeplink.dart second, so a project that keeps its identifiers in the config runs the command with no flags. The one exception is --paths '/*': it equals the flag's default, so the command cannot tell it from an omitted flag and the paths in the config replace it.

The files land directly in --output, which defaults to public. The doctor searches only web/.well-known and public/.well-known, so pass --output public/.well-known (or web/.well-known) for it to find them.

Usage

dart run magic:dowel deeplink:generate \
  --team-id ABCDE12345 \
  --bundle-id your.package.name \
  --package-name your.package.name \
  --sha256-fingerprints AA:BB:CC:... \
  --output public/.well-known

Constructors

GenerateCommand()

Properties

boot → CommandBoot
What boot context the dispatcher must establish before calling handle. See CommandBoot for the V1 taxonomy (none, connected).
no setter
description → String
One-line description (rendered in dowel list next to name).
no setter
hashCode → int
The hash code for this object.
no setterinherited
name → String
Dispatch key. Colons (:) act as namespace prefixes for dowel list grouping (e.g. tapir:snap groups under tapir).
no setterinherited
parsedSignature → CommandSignature?
Lazy-parsed signature. Cached for the lifetime of the instance.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
signature → String
Optional Laravel-style signature DSL. When set, name derives from it and configure auto-registers the declared options/flags.
no setter

Methods

buildAppleAppSiteAssociation(String teamId, String bundleId, List<String> paths) → Map<String, dynamic>
Build the apple-app-site-association JSON map for iOS Universal Links.
Build the assetlinks.json list for Android App Links.
configure(ArgParser parser) → void
Auto-applies signature to the parser when set. Override to register extra ArgParser features (mandatory options, aliases, custom value validators). When you override, call super.configure(parser) first if you also use the signature DSL.
getProjectRoot() → String
Return the Flutter project root directory.
handle(DowelContext ctx) → Future<int>
Execute the command. Returns the process exit code.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parseDeeplinkConfig(String content) → Map<String, dynamic>
Parse a deep link configuration Dart file content.
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited