Skip to content

feat: support multiple user profiles and hosts #12

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

KernelDeimos
Copy link
Contributor

Before this change it was not possible to use puter-cli on local instances of Puter, nad it was not possible to configure more than one Puter account. With this change, it is possible to add multiple accounts with specified hosts using the "puter login" command.

Technical Changes

  • Login wizard is moved to modules/ProfileModule.js
  • Added a function to modify exported API_BASE and BASE_URL symbols. They used to be constants but now they are not
  • puter login now executes the login command via the shell. This was necessary so that the login command can have the full context of the shell (and all loaded modules); this makes puter <subcommand> commands more flexible and means there's only one entrypoint to commands instead of potentially two
  • Some errors (specifically ones that got in my way) now have stack traces logged. Eventually all error handling should be delegated to a central handler so that changes like this can be made in one place.

Before this change it was not possible to use puter-cli on local
instances of Puter, nad it was not possible to configure more than one
Puter account. With this change, it is possible to add multiple accounts
with specified hosts using the "puter login" command.
@KernelDeimos KernelDeimos requested a review from bitsnaps May 5, 2025 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant