LogoLogo
  • OnePub
  • Guides
    • Installing
      • Install CLI tools
      • Register
      • Invite a member
      • Accept an Invite
      • CLI integration
        • Manually add publish_to
        • Implicit Integration
      • IDE integration
        • Android Studio
        • Visual Studio Code
      • Pre Dart 2.15
      • Pre Dart 2.12
    • Searching
    • Watching packages
    • Publishing Packages
      • The hard way
    • Private dependencies
      • The hard way
    • CLI Tools
      • login
      • logout
      • doctor
      • export
      • import
      • pub add
      • pub private
      • pub global activate
      • pub global deactivate
    • CI/CD
    • SSH
    • Docker
    • Community Choice Awards
  • Fundamentals
    • Members
    • Teams
    • Roles
    • Naming Packages
  • Workflows
    • Distributing to Customers
      • Purchase a Customer Distribution License
      • Security considerations
      • Publish a package
      • Invite a customer
      • Customer installation instructions
      • Conditions Apply
    • For Support
    • Setting up CI/CD
    • Vendoring Dependencies
    • Switching Organisations
    • Creating a Team Leader
  • FAQ
    • Is GST/VAT/Sales Tax applicable?
    • Does OnePub.dev have access to my personal information?
    • What is your SLA?
    • How do I get support?
    • How do I use OnePub from my CI/CD environment?
    • How to invite team members to join OnePub
    • How to publish a private package
    • 401: Unauthorized
  • Solved by OnePub
  • Data Retention Policy
  • Payments
Powered by GitBook
On this page
  • To export your own OnePub Token run:
  • To export another user's OnePub Token run:
  • Export to a file

Was this helpful?

  1. Guides
  2. CLI Tools

export

PreviousdoctorNextimport

Last updated 1 month ago

Was this helpful?

The onepub export command works in concert with the onepub import command to log in to devices where the standard OnePub OAuth mechanism won't work as you don't have access to a browser.

See the and section for further details on using the onepub export/import commands in these scenarios.

The OnePub Token should always be managed and stored securely, as any person with access to the Token will have all the permissions of the Member the token is attached to.

To export your own OnePub Token run:

onepub export

To export another user's OnePub Token run:

onepub export --user <user email address>

You must be an Administrator or a Team Leader to export another Member's OnePub

token. An Administrator can export anyone's token. A Team Leader can export the token of any Member of their team.

Export to a file

The above export commands will display the OnePub Token to the console. You can combine the --file option with either of the above commands to output the token to a file. If no file name is provided then we export the token to onepub.token.yaml.

onepub export --file

Alternatively, you can pass the name of the file to export the token to:

onepub export --file token.yaml
CI/CD
SSH