Create an API Token
API tokens let the sysand client publish projects and perform other
authenticated package-index actions. Prefer trusted publishing over API tokens
for existing projects when that fits your workflow.
Choose the Token Type¶
Sysand Index supports account tokens and project tokens. Project tokens are scoped to one existing project. Account tokens use your account permissions and can also be used to create a new project.
Create a Token¶
Go to your Settings -> Tokens.
Under Create new token, enter a descriptive name and choose an expiry.
Press Create token.
Copy the token from the confirmation dialog before closing it.
The token will look like sysand_u_abcdef0123456789abcdef0123456789.
Go to your Projects.
Click Manage on an existing project.
Click the Tokens tab.
Under Create new token, enter a descriptive name and choose an expiry.
Press Create token.
Copy the token from the confirmation dialog before closing it.
The token will look like sysand_p_abcdef0123456789abcdef0123456789.
Configure sysand to Use an API Token¶
To use the token with sysand, for example with sysand publish, configure
the credential environment variables described in the
sysand client documentation.
Replace the example bearer token with the token you copied.
$env:SYSAND_CRED_INDEX = "https://sysand.com/**"
$env:SYSAND_CRED_INDEX_BEARER_TOKEN = "sysand_u_abcdef0123456789abcdef0123456789"export SYSAND_CRED_INDEX='https://sysand.com/**'
export SYSAND_CRED_INDEX_BEARER_TOKEN='sysand_u_abcdef0123456789abcdef0123456789'export SYSAND_CRED_INDEX='https://sysand.com/**'
export SYSAND_CRED_INDEX_BEARER_TOKEN='sysand_u_abcdef0123456789abcdef0123456789'