Skip to content

Recommended workflow for switching between multiple API tokens? #496

Open
@nlhkabu

Description

@nlhkabu

Hi folks

I am working on adding instructions to the 'Add API token' page on PyPI (see pypi/warehouse#6615). Currently, the instructions look like this:

API token for an entire PyPI account

We suggest that users create a .pypirc file in their home directory with the token details:

Screenshot from 2019-09-11 07-11-27

Token scoped to a PyPI project

We suggest that users can switch between multiple tokens with <code>twine --repository PROJECT_NAME</code>

Screenshot from 2019-09-11 07-12-09

Questions

  1. Is this accurate?
  2. Is this the recommended workflow?
  3. Am I missing anything that it would be useful to document here?

Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedIssues we can't or shouldn't get to yetquestionDiscussion/decision needed from maintainers

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions