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) from values supplied as CLI options.
No hardcoded values — all config must be passed via flags.
Usage
dart run <app>:artisan deeplink:generate \
--team-id ABCDE12345 \
--bundle-id your.package.name \
--package-name your.package.name \
--sha256-fingerprints AA:BB:CC:... \
--output public
Constructors
Properties
- boot → CommandBoot
-
What boot context the dispatcher must establish before calling handle.
See
CommandBootfor the V1 taxonomy (none, connected).no setter - description → String
-
One-line description (rendered in
artisan listnext to name).no setter - hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
Dispatch key. Colons (
:) act as namespace prefixes forartisan listgrouping (e.g.dusk:snapgroups underdusk).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.
-
buildAssetLinks(
String packageName, List< String> fingerprints) → List - 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(
ArtisanContext 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