- Purpose for personal access token
- Create a personal access token on GitHub
- Login into Simatic-Ax registry
- Workspace settings to access the GitHub registry
To be able to consume packages from the simatic-ax group, you need to login to the registry.
To create a personal access token on GitHub, follow this link
It's very important that you check the checkbox
write:packagesFor security reasons, your token should expire after a while (by default it's 30 days). Remember this token. You'll need it for the login in the next step.
To login via CLI, you need to enter the following command. You need to replace <your personal access token> with your GitHub-created access token.
apax login --registry https://npm.pkg.github.com/ --password <your personal access token>
To login to the GitHub registry for Simatic AX within your IDE (Web or local AX Code), follow these steps:
-
Select the file
apax.yml, right-click and selectLogin to registry -
Enter the GitHub URL
https://npm.pkg.github.com/
-
Leave the user name field empty and press
Enter -
Enter your personal access token from GitHub with
Ctrl+V
Now you're able to install all dependencies to develop your library.
To access the GitHub registry from your workspace, you need to declare it in the apax.yml.
Please enter the following code into your apax.yml:
registries:
'@simatic-ax': 'https://npm.pkg.github.com/'



