Skip to main content

Phylum Project Creation

Phylum projects are used to represent a software project; often a git repository. A Phylum project organizes the dependencies and findings for your software project. This page enumerates the ways a Phylum project can be created.

NOTE: Project creation does not trigger an analysis of the project. Instead, the phylum analyze command will trigger an analysis job and organize the results in the specified Phylum project.


Phylum CLI

Via phylum init command

  1. Navigate to the directory of the relevant software project
  2. Use the CLI tool to initialize a Phylum project, the interactive prompt will default to the name of the directory, or you may specify the desired project name
❯ pwd

❯ phylum init
Project Name [default: a-phylum-demo]:

[ENTER] Confirm
Project Group: demo-group

[SPACE] Select [ENTER] Confirm
Select your project's lockfiles and manifests: ./requirements.txt

✅ Successfully created project configuration

❯ cat .phylum_project
id: 49158d65-76aa-46f2-89f3-6a50419cfc3d
name: a-phylum-demo
created_at: 2023-07-21T19:16:44.830526-05:00
group_name: demo-group
- path: ./requirements.txt
type: pip

Via phylum project command

  1. Navigate to the directory of the relevant software project
  2. Use the CLI tool to create a new Phylum project

Note: This will create a .phylum_project file in the current directory


phylum project create sample


The phylum-ci tool accepts a --project option to explicitly provide the name of a Phylum project to create and use to perform the analysis. You can also specify this option's value in the .phylum_project file. A project name provided as an input option will be preferred over an entry in the .phylum_project file.

When no project name is provided through options or project file, a project name will be provided by detecting the git repository name. The goal is a unique and deterministic project name for each git repository submitted by the same Phylum user account.

Each of the examples here result in the same sample project used and created if it doesn't already exist:

# Execute `phylum-ci` specifying a project named "sample"
phylum-ci --project sample

# A `.phylum_project` file exists with an entry of `name: sample`

# No `.phylum_project` file exists, but the git repository name is `sample`

GitHub App

  1. The Phylum GitHub App will automatically create a Phylum project when monitoring is activated for a given repository. The Phylum project will be assigned the same name as the repository.


Can Phylum projects be shared with other accounts?

Yes! This feature is available to Pro users via groups.