Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[docs] add tokens

  • Loading branch information...
commit 487c8de1fa4ed625aa11cde565834472c94a45b2 1 parent ebb2860
@Swaagie Swaagie authored
Showing with 22 additions and 0 deletions.
  1. +22 −0 content/jitsu/tokens.md
View
22 content/jitsu/tokens.md
@@ -1,5 +1,27 @@
# Tokens
+Token management for your accounts is available through `jitsu tokens *`.
+Listing all available tokens, can be done with `jitsu tokens list [username]`,
+where *username* is optional. You will be prompted to enter the password of the
+account your trying to list the tokens for, per example:
+```
+info: Welcome to Nodejitsu
+info: jitsu v0.12.10, node v0.8.22
+info: It worked if it ends with Nodejitsu ok
+info: Executing command tokens list [username]
+info: Listing all tokens for [username]
+prompt: password:
+data: name token
+data: tokenname1 4b7df949-1c21-4b70-8770-2c5615bc1d9a
+data: tokenname2 5116b717-988c-467c-8ae4-ae49896e8a3a
+info: Nodejitsu ok
+```
+
+Adding a token to an account can be done with
+`jitsu tokens create [username] [token name]`, where *token name* is a unique
+chosen identifier/name. Removing a token is done by issuing `jitsu tokens
+destroy [username] [token name]`. In the example above *token name* could be
+`tokenname1` or `tokenname2`.
[meta:title]: <> (Tokens)
Please sign in to comment.
Something went wrong with that request. Please try again.