Global

Methods

activateToken(path)

Activates the given token by copying it to ~/.voxel51/api-token.json. Subsequent API instances will now use this token for authentication.

Parameters:
Name Type Description
path string

Path to a token JSON file

Source:

deactivateToken()

Deactivates (deletes) the currently active token, if any. The active token is the token at ~/.voxel51/api-token.json.

Source:
Throws:

if there was no active token to deactivate

Type
Error