You can generate a list of all ingredients of a project and download a tar.gz for each ingredient. To download a current list of the ingredients of your project you must:
state auth command.state export jwt command and copy the result.{
"Authorization": "Bearer <JWT-from-step-3>"
}
state export jwt command and copy the result.{
"Authorization": "Bearer <JWT-from-step-3>"
}
Example query:
query slsa {
project(organization: "<ORG-NAME>", project: "<PROEJECT-NAME>") {
__typename
query slsa {
project(organization: “
Replace \<ORG-NAME> and \<PROJECT-NAME> with information about your project and run the query.
For more info on the ActiveState GraphQL API, [click here](https://docs.activestate.com/platform/api/).
## Downloading the ingredient list
You can download any of the tar/zip files using the State Tool CLI using information from the GraphQL output received in step 4.
```text
curl -v -L -O --header "Authorization: Bearer <JWT_TOKEN>" <FILE_URL>
Replace the <JWT_TOKEN> with the JSON web token generated in step 3. Use the URL of the tar/zip file in the GraphQL output as the <FILE_URL> in the above curl command. This will download the requested file to your current working directory.