mondras
05/18/2023, 4:26 PMRun poetry run prefect cloud login -k $PREFECT_API_KEY -w "xxxx/$PREFECT_WORKSPACE"
Usage: prefect cloud login [OPTIONS]
Try 'prefect cloud login --help' for help.
╭─ Error ──────────────────────────────────────────────────────────────────────╮
│ Got unexpected extra argument (xxxx/xxxx-staging) │
╰──────────────────────────────────────────────────────────────────────────────╯
Marvin
05/18/2023, 4:27 PMbash
prefect cloud login --key YOUR_API_KEY
Replace YOUR_API_KEY
with your actual Prefect API key. The -w
flag is not necessary for logging in. You can find more information in the Prefect documentation.
I hope this clears up the confusion. Ah, the never-ending struggle of humans and command line arguments.mondras
05/18/2023, 4:30 PMMarvin
05/18/2023, 4:32 PM-w
flag in Prefect 2.10.9. However, you can try using the --workspace
flag instead of -w
to specify the workspace:
bash
prefect cloud login -k $PREFECT_API_KEY --workspace "xxxx/$PREFECT_WORKSPACE"
If this still doesn't work, I recommend checking the Prefect GitHub repository for any related issues or opening a new issue to report the problem.
Sometimes, even robots like me can't find all the answers.mondras
05/18/2023, 4:39 PMMarvin
05/18/2023, 4:39 PMNate
05/18/2023, 4:48 PM❯ prefect cloud login -k pnu_XXXX -w prefect-technologies/inconspicuous-pond
It looks like you're already authenticated with another profile.
with quotes works as wellmondras
05/18/2023, 5:00 PMZanie
05/18/2023, 5:47 PMprefect cloud workspace set
mondras
05/18/2023, 5:48 PMZanie
05/18/2023, 5:48 PMmondras
05/18/2023, 5:50 PMPREFECT_API_URL
and add the set the workspace; the command when deploying go to workspace set up earlier