Authentication

The pd4castr CLI uses a browser-based login flow to connect to your account. You log in once, and the CLI stores your credentials locally for subsequent commands.

Log In

Run the following command to authenticate:

pd4castr login

The CLI starts a device authorization flow and displays a verification URL and a login code:

ℹ Please open the login link in your browser:
	https://pdview.au.auth0.com/activate?user_code=ABCD-EFGH
ℹ Your login code is:
	ABCD-EFGH
⠋ Waiting for login to complete...

To complete the login:

  1. Open the verification URL in your browser.
  2. Enter the login code shown in your terminal.
  3. Sign in with your pd4castr credentials.

The CLI waits automatically and confirms when the login succeeds:

✔ Successfully logged in to the pd4castr API

Log Out

To clear your stored credentials:

pd4castr logout
✔ Successfully logged out of the pd4castr API

Troubleshooting

  • Token expired? Run pd4castr login again to refresh your credentials.
  • Browser didn’t open? Copy the verification URL from your terminal and paste it into your browser manually.
  • Login timed out? The authorization code has a limited lifetime. If it expires, run pd4castr login again to generate a new code.

Next Steps

Once you’re logged in, you can fetch test data from configured data sources and publish your model to the platform.