import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
const secret = await client.secrets.create({ name: 'name', value: 'value' });
console.log(secret.id);
{
"id": "<string>",
"name": "<string>"
}
Secrets
Create secret
Create a secret in your project.
JavaScript
import Riza from '@riza-io/api';
const client = new Riza({
apiKey: process.env['RIZA_API_KEY'], // This is the default and can be omitted
});
const secret = await client.secrets.create({ name: 'name', value: 'value' });
console.log(secret.id);