Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

CLI configure environment for a second user

Aperta
#501 7 commenti 0 reazioni 6 assegnatari Vedi su GitHub

@mwwoda ci sta già lavorando.

Dal 26/9/2023.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

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

Lingua principale
JavaScript
Stelle
285
Fork
67
Merge medio
5h 27m
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di box/boxcli

Tutte le issue di box/boxcli

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.