First project
In this section we will set up a new project.
This involves creating a local project directory holding your project code
and a corresponding Flyte project to which you will deploy that code using the pyflyte CLI.
Create a new Flyte project
Create a new project on your local Flyte cluster:
$ flytectl create project \
      --id "my-project" \
      --labels "my-label=my-project" \
      --description "My Flyte project" \
      --name "My project"You can see the project you just created by going to http://localhost:30080 in your browser.
Flyte provides a default project (called flytesnacks) where all your workflows will be
registered unless you specify otherwise.
In this section, however, we will be using the project we just created, not the default.
Initialize a local project
We will use the pyflyte init command to initialize a new local project corresponding to the project created on your Flyte instance:
$ pyflyte init --template flyte-simple my-projectThe resulting directory will look like this:
├── LICENSE
├── README.md
├── hello_world.py
├── pyproject.toml
└── uv.lockIt is good practice to name your local project directory the same as your Flyte project ID, as we have done here.
Next, let’s look at the contents of the local project directory. Continue to Understanding the code.
