Skip to main content

PRINT_MD_TOKEN pragma

You can retrieve your MotherDuck authentication token using the PRINT_MD_TOKEN pragma.

In CLI or Python, to avoid having to re-authenticate every time, you can store your token as an environment variable; for example, by running export motherduck_token='xxxx' in the terminal. Be sure to replace 'xxxx' with your own token!

Syntax

PRAGMA PRINT_MD_TOKEN;