`pyflyte` vs `flytectl` question; is it possible t...
# ask-the-community
g
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
@George Horrell, you're looking for `pyflyte register`: https://docs.flyte.org/projects/flytekit/en/latest/design/clis.html#pyflyte-register
g
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
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. :)
104 Views