Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CLI configure environment for a second user

Open
#501 7 comments 0 reactions 6 assignees View on GitHub

@mwwoda is already working on this.

Since Sep 26, 2023.

Assessment

This issue has not been assessed yet.

Description

enhancement
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

Dominant language
JavaScript
Stars
285
Forks
67
Avg merge
5h 27m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from box/boxcli

All issues in box/boxcli

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.