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

George Horrell

03/20/2023, 11:01 PM
pyflyte
vs
flytectl
question; is it possible to package and register from a
flyte-package.tgz
as two separate steps, all within
pyflyte
? Or is it necessary to pass the
flyte-package.tgz
file to flytectl after packaging in
pyflyte
?
e

Eduardo Apolinario (eapolinario)

03/20/2023, 11:54 PM
@George Horrell, you're looking for `pyflyte register`: https://docs.flyte.org/projects/flytekit/en/latest/design/clis.html#pyflyte-register
g

George Horrell

03/21/2023, 5:13 PM
Thanks for the help! But I’m not sure that is quite what I’m looking for - I want to package flyte code locally (i.e. maybe produce a
flyte_package.tgz
) and register on a separate machine all within the python sdk.
e

Eduardo Apolinario (eapolinario)

03/22/2023, 12:13 AM
oh, I see! Sorry for the confusion. Yeah, we don't have a
pyflyte
command equivalent for
flytectl register files
. Any special reason for not installing
flytectl
? We have a deprecated command in a separate cli called
flyte-cli
that we've marked for deprecation (but haven't removed yet) that has a command called
register-files
that does what you want (you'll need the protobuf files, not the compressed file). That could be ported over to
pyflyte
very easily. Can you open a github issue? Maybe contribute to it. :)
5 Views