Linux command
appclipcodegen 命令
网络
复制后可按需替换文件名、目录或参数。
常用示例
Generate
AppClipCodeGenerator generate --url [https://example.com] --type [cam] --foreground [FFFFFF] --background [000000] --output [output.svg]
Generate
AppClipCodeGenerator generate --url [https://example.com] --type [nfc] --foreground [FFFFFF] --background [000000] --output [output.svg]
Validate colors
AppClipCodeGenerator suggest --foreground [FFFFFF] --background [000000]
说明
AppClipCodeGenerator is Apple's official command-line tool for creating and validating App Clip Codes. App Clip Codes are visually distinctive, scannable codes that launch App Clip experiences on iOS devices — lightweight app experiences that can be discovered without installing the full app. The tool generates App Clip Codes as SVG files with two code types: cam codes that are scannable by the device camera, and nfc codes that additionally support Near Field Communication for tap-to-open functionality. The suggest command validates that foreground and background color combinations meet Apple's contrast and readability requirements. App Clip Codes encode a URL that maps to a registered App Clip experience through Apple's App Store Connect configuration.
参数
- generate
- Generate an App Clip Code SVG file
- suggest
- Validate color combinations and get suggestions
- --url _URL_
- The URL that opens when the App Clip Code is scanned
- --type _cam|nfc_
- Code type: cam for camera-only scanning or nfc for NFC-enabled codes
- --foreground _RRGGBB_
- Foreground color as a hex value
- --background _RRGGBB_
- Background color as a hex value
- --output _path_
- Output path for the generated SVG file
FAQ
What is the appclipcodegen command used for?
AppClipCodeGenerator is Apple's official command-line tool for creating and validating App Clip Codes. App Clip Codes are visually distinctive, scannable codes that launch App Clip experiences on iOS devices — lightweight app experiences that can be discovered without installing the full app. The tool generates App Clip Codes as SVG files with two code types: cam codes that are scannable by the device camera, and nfc codes that additionally support Near Field Communication for tap-to-open functionality. The suggest command validates that foreground and background color combinations meet Apple's contrast and readability requirements. App Clip Codes encode a URL that maps to a registered App Clip experience through Apple's App Store Connect configuration.
How do I run a basic appclipcodegen example?
Run `AppClipCodeGenerator generate --url [https://example.com] --type [cam] --foreground [FFFFFF] --background [000000] --output [output.svg]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does generate do in appclipcodegen?
Generate an App Clip Code SVG file