Skip to content
This repository was archived by the owner on Jun 6, 2023. It is now read-only.

Commit aa1fa02

Browse files
committed
update docs
1 parent f752712 commit aa1fa02

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+82
-79
lines changed

docs/index.html

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -53,34 +53,37 @@ <h2><a href="index.html">Home</a></h2><h3>Namespaces</h3><ul><li><a href="jobs.h
5353
<p>The <strong>Paperspace API</strong> is the official devkit for automating your <a href="https://www.paperspace.com">Paperspace</a> account. It's currently available in JavaScript, and we plan to offer other languages and integrations in the future. For v0, we are offering basic actions such as creating machines and managing team members. This repo includes:</p>
5454
<ul>
5555
<li><a href="#Paperspace CLI">Paperspace CLI</a></li>
56-
<li><a href="#Programmatic access via Paperspace-Node">JavaScript API client</a> (for Nodejs and web browsers)</li>
56+
<li><a href="#Programmatic access via Paperspace-Node">JavaScript API client</a> (for Node.js and web browsers)</li>
5757
<li><a href="https://paperspace.github.io/paperspace-node">API documentation</a></li>
5858
<li><a href="scripts.md">Script Guide</a> for creating and using startup scripts</li>
5959
</ul>
60-
<h2><a href="releasenotes.md">Release Notes</a></h2><h2>Getting started</h2><h3>Installation</h3><p>Option 1: Download the pre-build binary for your plaftorm:</p>
61-
<p>Pre-built binaries are available for:</p>
60+
<h2><a href="releasenotes.md">Release Notes</a></h2><h2>Getting started</h2><h3>Installation</h3><h4>Option 1: Download the pre-built 'paperspace' binary for your plaftorm</h4><p>Pre-built 'paperspace' binaries are available for:</p>
6261
<ul>
6362
<li><a href="https://s3.amazonaws.com/paperspace-node/v0.1.8/win/paperspace.exe">Windows</a></li>
6463
<li><a href="https://s3.amazonaws.com/paperspace-node/v0.1.8/mac/paperspace">Mac</a></li>
6564
<li><a href="https://s3.amazonaws.com/paperspace-node/v0.1.8/linux/paperspace">Linux</a></li>
6665
</ul>
67-
<p>After downloading, make sure the binary is permitted to run on your system by marking its permissions appropriately.
68-
Also, add the directory containing the paperspace binary to your path using a method appropriate for your platform.</p>
69-
<p>Option 2: Install the paperspace-node package from npm:</p>
70-
<p>For this option your system will need <a href="https://nodejs.org">Node.js</a> v8+ installed. Check that you have a recent enough version by running <code>node -v</code> in your terminal. Node.js comes bundled with <code>npm</code>, the Node.js package management tool, which you'll use to install this package. Install the package using the -g option as follows:</p>
71-
<pre class="prettyprint source"><code>$ npm install -g paperspace-node</code></pre><p>The reason we recommend installing it globally is so the <code>paperspace</code> command will be available on your command line everywhere on your system. If you only want to make it available only within an individual Node.js project, you can install it locally by omitting the <code>-g</code> flag.</p>
72-
<h3>Setup a Paperspace Account</h3><p>Before you can use this tool, you'll need a <a href="https://paperspace.com">Paperspace account</a>. You'll use this account to obtain Paperspace API keys.</p>
73-
<h3>Obtaining an API key</h3><p>After you have set up a Paperspace account, you can create your first API token and key by logging into your account via the Paperspace CLI: </p>
66+
<p>After downloading, make sure the 'paperspace' binary is permitted to run on your system by marking its permissions appropriately.
67+
Also, add the directory containing the 'paperspace' binary to your path using a method appropriate for your platform.</p>
68+
<h4>Option 2: Install the paperspace-node package from npm</h4><p>For this option you will need <a href="https://nodejs.org">Node.js</a> v8.9.3 or later. Check your Node.js version by running <code>node -v</code>. Node.js comes bundled with <code>npm</code>, the Node.js package management tool, which you'll use to install this package. Install the package using the -g option as follows:</p>
69+
<pre class="prettyprint source"><code>$ npm install -g paperspace-node</code></pre><p>We recommend installing the paperspace-node package globally so that the <code>paperspace</code> command will be available on your command line everywhere on your system. If you want to make it available only within an individual Node.js project, you can install it for use only in the current directory by omitting the <code>-g</code> flag.</p>
70+
<h3>Setup a Paperspace Account</h3><p>Before you can use this tool, you'll need a <a href="https://paperspace.com">Paperspace account</a>. You'll use this account request access to the Paperspace API/Gradient Beta, and to obtain a Paperspace API key.</p>
71+
<p>After creating your Paperspace account check your email to confirm your account before logging in.</p>
72+
<h3>Request Access to the Paperspace API and Gradient Beta</h3><p>To use the Paperspace API or Gradient tools you will need to request access to the <em>Paperspace API and Gradient Beta</em>. To do this first log into your <a href="https://paperspace.com">Paperspace account</a>. Then go to the <a href="https://www.paperspace.com/console/gradient">Gradient console</a> and fill out the form to request access.</p>
73+
<p>You will subsequently receive an email confirmation when your acess request is approved (usually within 24 hours).</p>
74+
<h3>Obtaining an API key</h3><p>Once you have been approved for access to the <em>Paperspace API and Gradient Beta</em> you will need to obtain a API key.</p>
75+
<p>Your API key allows you to access the Paperspace APIs and Gradient features from the command line, or from within apps that you develop. Each API key has an API Token name associated with it.</p>
76+
<p>There are two ways to create an API key, either via the Paperspace CLI, or from within the <a href="(https://www.paperspace.com/console/account/api">API</a>) section of your Paperspace console.</p>
77+
<h4>Option 1: Obtain an API key via Paperspace CLI</h4><p>You can create your first API key by logging into your account via the Paperspace CLI: </p>
7478
<pre class="prettyprint source"><code>$ paperspace login</code></pre><p> -or-</p>
75-
<pre class="prettyprint source"><code>$ paperspace login [&lt;user@domain.com>] [&lt;password>] [--apiToken &lt;api token name>]</code></pre><p>If you don't already have an api token in your paperspace account, this command will generate one. If you already have and api key, the
76-
first one listed in your account is downloaded. If you have more than one you can use the <code>--apiToken</code> option to specify the one to
77-
download.</p>
78-
<p>Note: for security, please make sure access to the file <code>~/.papersapce/config.json</code> is protected in your environment.</p>
79-
<p>You can clear your locally cached api key at any time by executing:</p>
80-
<pre class="prettyprint source"><code>$ paperspace logout</code></pre><p>Alternatively you can create an API key by signing in to your <a href="https://paperspace.com">Paperspace account</a>. Click 'Launch Console' at top right. From your admin console, you should find an 'Account Info' section. There, you'll find a form where you can create API keys. You'll use the API keys you generate here to authenticate your requests. You will need to pick and API token name for your API key, and also provide a description.</p>
79+
<pre class="prettyprint source"><code>$ paperspace login [&lt;user@domain.com>] [&lt;password>] [--apiToken &lt;api token name>]</code></pre><p>If you don't already have an API key in your paperspace account, this command will generate one and give it a default API token name of 'API token'.
80+
If you already have one or more API keys, the API key associated with the first API token listed in your account is downloaded. If you want to use a particular API key you can specify the associated API token name using the '--apiToken' option.</p>
81+
<p>Note: your API key is cached in a file in your home directory: <code>~/.papersapce/config.json</code>. For security, please make sure access to the file is protected so only you can access it.</p>
82+
<p>You can clear your locally cached API key at any time by executing:</p>
83+
<pre class="prettyprint source"><code>$ paperspace logout</code></pre><h4>Option 2: Obtain an API key via your Paperspace Console</h4><p>Alternatively you can create an API key from withn your <a href="https://www.paperspace.com/console">Paperspace console</a> API section. Under the API section in the left navigation bar, click <a href="https://www.paperspace.com/console/account/api">CREATE AN API KEY</a>. Follow the instructions there.</p>
84+
<p>You will need to pick and API token name for your API key, and also provide a description. You can copy actual the API key value associated with the API token name only at the time of initial creation. If you need to access your API key in the future, you can instead access it by API token name using the 'paperspace login' command.</p>
8185
<p><img src="https://user-images.githubusercontent.com/585865/27563650-f2bc289e-5aa0-11e7-990f-4ed6f9bd39e7.png" alt="image"></p>
82-
<p>Note: when creating an API token and key this way you need to copy the API key value immedately, as the API key value will not be visble
83-
in the web user interface later.</p>
86+
<p>You'll use the API keys generate here to authenticate your requests.</p>
8487
<h2>Usage</h2><p>You can interact with Paperspace's API in three ways: from the command line using the Paperspace CLI, programatically (from within a Javascript Nodejs application), or by using an HTTP client of your choice and the Paperspace API HTTP enpoints documented here.</p>
8588
<h3>Authentication</h3><p>For authenticated requests, the Paperspace CLI and Paperspace-Node module will look in three places for an api key:</p>
8689
<p>1) Locally in the file <code>~/.papersapce/config.json</code>, which can be created via the Paperspace CLI by executing:</p>
@@ -135,7 +138,7 @@ <h2>Copyright</h2><p>Copyright 2018 Paperspace Co. - All Rights Reserved</p></ar
135138
<br class="clear">
136139

137140
<footer>
138-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
141+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
139142
</footer>
140143

141144
<script>prettyPrint();</script>

docs/jobs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4024,7 +4024,7 @@ <h5>Returns:</h5>
40244024
<br class="clear">
40254025

40264026
<footer>
4027-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
4027+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
40284028
</footer>
40294029

40304030
<script>prettyPrint();</script>

docs/jobs_artifactsDestroy.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ <h1 class="page-title">jobs/artifactsDestroy.js</h1>
102102
<br class="clear">
103103

104104
<footer>
105-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
105+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
106106
</footer>
107107

108108
<script>prettyPrint();</script>

docs/jobs_artifactsGet.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ <h1 class="page-title">jobs/artifactsGet.js</h1>
280280
<br class="clear">
281281

282282
<footer>
283-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
283+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
284284
</footer>
285285

286286
<script>prettyPrint();</script>

docs/jobs_artifactsList.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ <h1 class="page-title">jobs/artifactsList.js</h1>
133133
<br class="clear">
134134

135135
<footer>
136-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
136+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
137137
</footer>
138138

139139
<script>prettyPrint();</script>

docs/jobs_clone.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ <h1 class="page-title">jobs/clone.js</h1>
130130
<br class="clear">
131131

132132
<footer>
133-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
133+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
134134
</footer>
135135

136136
<script>prettyPrint();</script>

docs/jobs_create.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ <h1 class="page-title">jobs/create.js</h1>
467467
<br class="clear">
468468

469469
<footer>
470-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
470+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
471471
</footer>
472472

473473
<script>prettyPrint();</script>

docs/jobs_destroy.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ <h1 class="page-title">jobs/destroy.js</h1>
103103
<br class="clear">
104104

105105
<footer>
106-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
106+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
107107
</footer>
108108

109109
<script>prettyPrint();</script>

docs/jobs_index.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ <h1 class="page-title">jobs/index.js</h1>
6868
<br class="clear">
6969

7070
<footer>
71-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
71+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
7272
</footer>
7373

7474
<script>prettyPrint();</script>

docs/jobs_list.js.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ <h1 class="page-title">jobs/list.js</h1>
156156
<br class="clear">
157157

158158
<footer>
159-
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Thu Jan 25 2018 17:51:29 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
159+
Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Fri Feb 02 2018 14:28:04 GMT-0500 (EST) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
160160
</footer>
161161

162162
<script>prettyPrint();</script>

0 commit comments

Comments
 (0)