-
Notifications
You must be signed in to change notification settings - Fork 59
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
CLI configure environment for a second user #501
Comments
So you still get data of the first environment after adding the second one (for example, when calling box:users)? Did you switch the default environment to the second one after adding it? I see that this is not done by default. You can do it with the following command |
Thanks @mwwoda Yes I've updated my post to reflect that I still get info from my first environment. |
It's not possible right now, but we plan to implement some kind of |
Yes it looks like #498 is requesting a similar flow.
|
For now if you want to use diffrent box aps you should create two environments switch them after each call Assuming that you have two environments with names DeptA and DeptB
and so on. |
This issue has been automatically marked as stale because it has not been updated in the last 30 days. It will be closed if no further activity occurs within the next 7 days. Feel free to reach out or mention Box SDK team member for further help and resources if they are needed. |
This issue has been automatically closed due to maximum period of being stale. Thank you for your contribution to Box CLI and feel free to open another PR/issue at any time. |
Description of the Issue
I have installed CLI in my environment last month and configured environment with my json.config file (default).
When I check my install using box users:get - it returns the info for my service account user (and I generate token for that user.)
context: I use the CLI in my workflow to trigger JWT token.
NOW I wish to add a SECOND automation user and private key to get token with the SECOND automation user's credentials.
After following the directions:
$ box configure:environments:add PATH_TO_CONFIG_FILE --private-key-path PATH_TO_PRIVATE_KEY --name SecondKey
Successfully added CLI environment "SecondKey"
Steps to Reproduce
I have executed --name SecondKey in my environment
and then attempted to verify the installation of a second CLI environment --name SecondKey
by executing box users: get SecondKey
box tokens: get SecondKey
and nothing happens
Expected Behavior
I expected to return the user info for the SECOND automation user
when I execute box users:get it returns information from my first environment
Goal
I would like CLI to be able to use both environment regularly to produce tokens [box tokens:get] for each service account by adding some sort of flag to my box []: get commands
Screenshots
not available
Versions Used
Box CLI: Install Sept 2023
The text was updated successfully, but these errors were encountered: