MonkeyCanCode opened a new pull request, #931:
URL: https://github.com/apache/polaris/pull/931

   Helper:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles --help
   input: polaris profiles --help
   options:
     profiles
       create
         Positional arguments:
           profile
       delete
         Positional arguments:
           profile
       get
         Positional arguments:
           profile
       list
       update
         Positional arguments:
           profile
   ```
   
   Create profile:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles create dev
   Polaris Client ID: root
   Polaris Client Secret: 712f1f6daf16326fd794607ef1ce90d9
   Polaris Host [localhost]:
   Polaris Port [8181]:
   Polaris profile dev created successfully.
   ```
   
   Get profile:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles get dev
   Polaris profile dev: {'client_id': 'root', 'client_secret': 
'712f1f6daf16326fd794607ef1ce90d9', 'host': 'localhost', 'port': 8181}
    ```
   
   List profiles:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles list
   Polaris profiles:
    - dev
    ```
   
   Delete profile:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles create test
   Polaris Client ID: 1
   Polaris Client Secret: 2
   Polaris Host [localhost]:
   Polaris Port [8181]:
   Polaris profile test created successfully.
   ➜  polaris git:(cli_profile) ./polaris profiles list
   Polaris profiles:
    - dev
    - test
   ➜  polaris git:(cli_profile) ./polaris profiles delete test
   Polaris profile test deleted successfully.
   ➜  polaris git:(cli_profile) ./polaris profiles list
   Polaris profiles:
    - dev
   ```
   
   Update profile:
   ```
   ➜  polaris git:(cli_profile) ./polaris profiles create test
   Polaris Client ID: 1
   Polaris Client Secret: 2
   Polaris Host [localhost]:
   Polaris Port [8181]:
   Polaris profile test created successfully.
   ➜  polaris git:(cli_profile) ./polaris profiles update test
   Polaris Client ID [1]: test
   Polaris Client Secret [2]: pass
   Polaris Client ID [localhost]:
   Polaris Client Secret [8181]:
   Polaris profile test updated successfully.
   ➜  polaris git:(cli_profile) ./polaris profiles get test
   Polaris profile test: {'client_id': 'test', 'client_secret': 'pass', 'host': 
'localhost', 'port': 8181}
   ```
   
   Use profile with CLI:
   ```
   ➜  polaris git:(cli_profile) ./polaris --profile dev principals create test
   {"clientId": "abf965119fa69b9c", "clientSecret": 
"e3eecb2082a90b0e2126d0920f404b3c"}
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to