app security instructions
Prints the workflow that a coding agent follows to review your app's security: run app security check, investigate the checks that can't be determined by code inspection alone, record its findings with app security record, and show the combined results with app security review.
The workflow starts with a fresh scan. It doesn't need an earlier app security check or reuse its options: the instructions tell your agent to decide what to scan, such as extra directories to add with --include-dir, and then run the check itself. Use this command to hand your agent the whole workflow at any time, to copy it to your clipboard, or to write it to a file.
Use --path, --config, --client-id, and --without-app-config to select the app. The commands in the instructions use the same selection.
Anchor to flagsFlags
The following flags are available for the app security instructions command:
- Anchor to --client-id <value>--client-id <value>--client-id <value>stringstringenv: SHOPIFY_FLAG_CLIENT_IDenv: SHOPIFY_FLAG_CLIENT_ID
The Client ID of your app.
- Anchor to --copy--copy--copyenv: SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_COPYenv: SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_COPY
Copy the instructions to the clipboard instead of printing them.
- Anchor to --json-schema--json-schema--json-schemaenv: SHOPIFY_FLAG_JSON_SCHEMAenv: SHOPIFY_FLAG_JSON_SCHEMA
Print the command's JSON schemas.
- Anchor to --no-color--no-color--no-colorenv: SHOPIFY_FLAG_NO_COLORenv: SHOPIFY_FLAG_NO_COLOR
Disable color output.
- Anchor to --no-input--no-input--no-inputenv: SHOPIFY_FLAG_NO_INPUTenv: SHOPIFY_FLAG_NO_INPUT
Disable interactive prompts and browser authentication.
- Anchor to --path <value>--path <value>--path <value>stringstringenv: SHOPIFY_FLAG_PATHenv: SHOPIFY_FLAG_PATH
The path to your app directory.
- Anchor to --verbose--verbose--verboseenv: SHOPIFY_FLAG_VERBOSEenv: SHOPIFY_FLAG_VERBOSE
Increase the verbosity of the output. May include sensitive data.
- Anchor to --without-app-config--without-app-config--without-app-configenv: SHOPIFY_FLAG_WITHOUT_APP_CONFIGenv: SHOPIFY_FLAG_WITHOUT_APP_CONFIG
Scan --path as an app with no app configuration file. Config checks are skipped. Requires --client-id.
- Anchor to --write <value>--write <value>--write <value>stringstringenv: SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_WRITEenv: SHOPIFY_FLAG_APP_SECURITY_INSTRUCTIONS_WRITE
Write the instructions to a file instead of printing them.
- Anchor to -c, --config <value>-c, --config <value>-c, --config <value>stringstringenv: SHOPIFY_FLAG_APP_CONFIGenv: SHOPIFY_FLAG_APP_CONFIG
The name of the app configuration.
app security instructions
Examples
App security instructions
app security instructions
shopify app security instructionsCopy the instructions
Description
Pass `--copy` to copy the instructions to your clipboard instead of printing them.
app security instructions --copy
shopify app security instructions --copyWrite the instructions to a file
Description
Pass `--write` with a file path to write the instructions to a file instead of printing them.
app security instructions --write
shopify app security instructions --write app-security-instructions.md