https://flyte.org logo
#ask-the-community
Title
# ask-the-community
x

Xinzhou Liu

05/11/2023, 8:18 PM
Is there a way to programmatically create a project? (altern. to
flytectl create project
)
k

Ketan (kumare3)

05/11/2023, 9:49 PM
yup check out the flytekit.remote
x

Xinzhou Liu

05/11/2023, 9:51 PM
i can just create project when registering workflow on the flyte
k

Ketan (kumare3)

05/11/2023, 9:51 PM
?
x

Xinzhou Liu

05/11/2023, 9:54 PM
oh, so it’s
flytekit.client
not
flytekit.remote
s

Samhita Alla

05/12/2023, 7:34 AM
Yeah it's `remote.client`; here's an example: https://github.com/flyteorg/airflow-provider-flyte/blob/bb5d94e7492869f0c0795cdf5a9a87335614b355/flyte_provider/hooks/flyte.py#LL278C18-L278C18 We don't have this available in the remote, but it's easy enough to add!
x

Xinzhou Liu

05/12/2023, 4:04 PM
got it, thank you!
70 Views