fossa init

Generate starter fossa-deps and .fossa.yml example files in the working directory.

1 min readUpdated Jul 9, 2026

Works with a push-only API token

Every FOSSA endpoint this command calls is on the push-only allowlist, so a push-only token is sufficient. Learn about token access levels.

fossa init

The fossa init command creates examples of the following files if they do not exist in the current working directory:

Note that both the .fossa.yml and fossa-deps.yml files are optional. They allow for more specificity on how fossa-cli performs dependency analysis, but they are not required for fossa-cli usage.

© 2026 FOSSA, Inc.support@fossa.com