Skip to main content
The command endorctl recommend fetches prioritized and recommended updates to address findings across your tenant, projects, or packages. All recommendations are based on the number of issues and complexity of a given upgrade.

Usage

To recommend dependency updates across all projects in your namespace.
endorctl recommend dependency-upgrades
To recommend dependency updates across a specific project in your namespace:
  1. Retrieve the UUID of your project. In the following example, we are retrieving the UUID of the project “https://github.com/endorlabs/app-java-demo” and saving it as an environment variable.
    UUID=$(endorctl api list -r Project --filter="meta.name matches https://github.com/endorlabs/app-java-demo" --field-mask=uuid | jq -r '.list.objects[].uuid')
    
  2. Execute the recommend dependency-upgrades command.
    endorctl recommend dependency-upgrades --project-uuid=$UUID
    
To recommend dependency updates across a specific package in your namespace:
  1. Retrieve the UUID of your package version. The following example looks for a project with the name “https://github.com/endorlabs/app-java-demo” and saves it as an environment variable.
    UUID=$(endorctl api list -r PackageVersion --filter="meta.name==mvn://com.endor.webapp:endor-java-webapp-demo@4.0-SNAPSHOT AND context.type==CONTEXT_TYPE_MAIN" --field-mask=uuid | jq -r '.list.objects[].uuid')
    
  2. Execute the recommend dependency-upgrades command
    endorctl recommend dependency-upgrades --package-version-uuid=$UUID
    

Options

The following flags and environment variables are available for the endorctl recommend command.