//Getting started page link ..
https://docs.ngc.nvidia.com/cli/cmd.html
// installation page link ..
https://org.ngc.nvidia.com/setup/installers/cli
https://docs.ngc.nvidia.com/cli/index.html NGC CLI
Step 1
// Download CLI zip file
wget --content-disposition https://api.ngc.nvidia.com/v2/resources/nvidia/ngc-apps/ngc_cli/versions/3.44.0/files/ngccli_linux.zip -O ngccli_linux.zip && unzip ngccli_linux.zip
Step 2
find ngc-cli/ -type f -exec md5sum {} + | LC_ALL=C sort | md5sum -c ngc-cli.md5
:OK
Step 3
sha256sum ngccli_linux.zip
Step 4
chmod u+x ngc-cli/ngc
echo "export PATH=\"\$PATH:$(pwd)/ngc-cli\"" >> ~/.bash_profile && source ~/.bash_profile
Step 5
echo $PATH
/home/jk/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:/snap/bin:/home/jk/dev/ngc/ngc-cli:/home/jk/dev/ngc/ngc-cli:/home/jk/dev/cuda/ngc-cli:/home/jk/dev/cuda/ngc-cli:/home/jk/dev/cuda/ngc-cli
jk@jkhome:~/dev/cuda$
Step 6
personal key : nvapi-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Account Name : yyyyyyyyyyyyyyyyy
ngc config set
Enter API key [****8bxS]. Choices: [<VALID_APIKEY>, 'no-apikey']: nvxxxxxxxxxxxx
Enter CLI output format type [ascii]. Choices: ['ascii', 'csv', 'json']: ascii
Enter org [jx8mdclwzwsu]. Choices: ['jx8mdclwzwsu']: jx8mdclwzwsu
Enter team [no-team]. Choices: ['no-team']: no-team
Enter ace [no-ace]. Choices: ['no-ace']: no-ace
Validating configuration...
Successfully validated configuration.
Saving configuration...
Successfully saved NGC configuration to /home/jk/.ngc/config
which ngc
/home/jk/dev/cuda/ngc-cli/ngc
ngc user who
+---------+-------------+--------------+--------------+---------+--------------+
| User Id | Name | Email | Org [Roles] | Teams | Created Date |
| | | | | [Roles] | |
+---------+-------------+--------------+--------------+---------+--------------+
| 1yyyyyyyy | Jyyyyyy | yyyyyyyyy | jk (yyyyyyyyy | | 2022-11-17 |
| | S Ph.D | | zwsu) [REGIS | | 13:02:10 UTC |
| | | | TRY_READ,ORG | | |
| | | | _OWNER,REGIS | | |
| | | | TRY-READ] | | |
+---------+-------------+--------------+--------------+---------+--------------+
/////// no use pls //// dirname `which ngc` | xargs rm -r
..for python support via NGC
pip install ngcsdk
https://docs.ngc.nvidia.com/api/
from ngcsdk import Client
clt = Client()
clt.configure(api_key='****NkMQ', org_name='nvidia', team_name='no-team', ace_name='no-ace')
Validating configuration...
Successfully validated configuration.
clt.current_config()
[{'key': 'apikey', 'value': '****NkMQ', 'source': 'user settings'},
{'key': 'format_type', 'value': 'ascii', 'source': 'user settings'},
{'key': 'org', 'value': 'nvidia', 'source': 'user settings'},
{'key': 'team', 'value': 'no-team', 'source': 'user settings'},
{'key': 'ace', 'value': 'no-ace', 'source': 'user settings'}]
.... python api page
https://docs.ngc.nvidia.com/sdk/api.html
clt.configure(api_key='****NkMQ', org_name='nvidia', team_name='no-team', ace_name='no-ace')
clt.configure(api_key='nvxxxxxxxxxxxxxxx', org_name='yyyyyyyy', team_name='no-team', ace_name='no-ace')
Validating configuration...
clt.current_config()
[{'key': 'apikey', 'value': '******************************************************************8bxS', 'source': 'global argument'}, {'key': 'format_type', 'value': 'json', 'source': 'global argument'}, {'key': 'org', 'value': 'jx8mdclwzwsu', 'source': 'global argument'}]
https://www.youtube.com/watch?v=LN5NzKx3qf0
................. June 23 .... ..11.29 am onwards ............
docker login nvcr.io
$oauthtoken
docker login nvcr.io
Authenticating with existing credentials...
WARNING! Your password will be stored unencrypted in /home/jk/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded