github.com/nats-io/nsc/v2@v2.8.7-0.20240307184528-efd7023c6896/docs/nsc_add_mapping.md (about)

     1  ## nsc add mapping
     2  
     3  Add (or modify) a mapping entry
     4  
     5  ### Synopsis
     6  
     7  Add (or modify) a mapping entry
     8  
     9  ```
    10  nsc add mapping [flags]
    11  ```
    12  
    13  ### Examples
    14  
    15  ```
    16  nsc add mapping --from "a" --to "b"
    17  # to modify an entry, say to set a weight after the fact
    18  nsc add mapping --from "a" --to "b" --weight 50
    19  # to add two entries from one subject, set weights and execute multiple times
    20  nsc add mapping --from "a" --to "c" --weight 50
    21  
    22  ```
    23  
    24  ### Options
    25  
    26  ```
    27    -a, --account string   account name
    28        --cluster string   in which cluster this mapping should apply
    29    -f, --from string      map from subject (required)
    30    -h, --help             help for mapping
    31    -t, --to string        to subject (required)
    32        --weight uint8     weight [1-100] of this mapping entry (default: 100)
    33  ```
    34  
    35  ### Options inherited from parent commands
    36  
    37  ```
    38        --config-dir string     nsc config directory
    39        --data-dir string       nsc data store directory
    40    -i, --interactive           ask questions for various settings
    41        --keystore-dir string   nsc keystore directory
    42    -K, --private-key string    Key used to sign. Can be specified as role (where applicable),
    43                                public key (private portion is retrieved)
    44                                or file path to a private key or private key 
    45  ```
    46  
    47  ### SEE ALSO
    48  
    49  * [nsc add](nsc_add.md)	 - Add assets such as accounts, imports, users
    50  
    51  ###### Auto generated by spf13/cobra on 25-Feb-2022