You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 6, 2023. It is now read-only.
<h4id="option-1-download-the-pre-built-paperspace-binary-for-your-plaftorm">Option 1: Download the pre-built 'paperspace' binary for your plaftorm</h4>
65
-
<p>Pre-built 'paperspace' binaries are available for:</p>
<p>Head over to the <ahref="https://github.com/Paperspace/paperspace-node/releases">releases</a> section to download the latest version of the paperspace CLI for Linux, Mac, and Windows.</p>
71
66
<p>After downloading, make sure the 'paperspace' binary is permitted to run on your system by marking its permissions appropriately.
72
67
Also, add the directory containing the 'paperspace' binary to your path using a method appropriate for your platform.</p>
73
68
<h4id="option-2-install-the-paperspace-node-package-from-npm">Option 2: Install the paperspace-node package from npm</h4>
@@ -87,16 +82,19 @@ <h4 id="option-1-obtain-an-api-key-via-paperspace-cli">Option 1: Obtain an API k
87
82
<p>If you already have one or more API keys in your account, 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>
88
83
<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>
89
84
<p>You can clear your locally cached API key at any time by executing:</p>
90
-
<preclass="prettyprint source"><code>$ paperspace logout</code></pre><h4id="option-2-obtain-an-api-key-via-your-paperspace-console">Option 2: Obtain an API key via your Paperspace Console</h4>
91
-
<p>Alternatively you can create an API key from withn your Paperspace console under the <ahref="https://www.paperspace.com/console/account/api">API</a> section. Login to your <ahref="https://www.paperspace.com/console">Paperspace console</a>, scroll to the API section in the left navigation bar, and click <ahref="https://www.paperspace.com/console/account/api">CREATE AN API KEY</a>. Follow the instructions there.</p>
<p>Note: Currently only email login is supported in the CLI - if you're using AD, SAML or GitHub to login to Paperspace, you will need t obtain an API key to log in with the CLI. </p>
87
+
</blockquote>
88
+
<h4id="option-2-obtain-an-api-key-via-your-paperspace-console">Option 2: Obtain an API key via your Paperspace Console</h4>
89
+
<p>Alternatively you can create an API key from within your Paperspace console under the <ahref="https://www.paperspace.com/console/account/api">API</a> section. Login to your <ahref="https://www.paperspace.com/console">Paperspace console</a>, scroll to the API section in the left navigation bar, and click <ahref="https://www.paperspace.com/console/account/api">CREATE AN API KEY</a>. Follow the instructions there.</p>
92
90
<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>
<p>You'll use the API keys generate here to authenticate your requests.</p>
95
93
<h2id="usage">Usage</h2>
96
94
<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>
97
95
<h3id="authentication">Authentication</h3>
98
96
<p>For authenticated requests, the Paperspace CLI and Paperspace-Node module will look in three places for an api key:</p>
99
-
<p>1) Locally in the file <code>~/.papersapce/config.json</code>, which can be created via the Paperspace CLI by executing:</p>
97
+
<p>1) Locally in the file <code>~/.paperspace/config.json</code>, which can be created via the Paperspace CLI by executing:</p>
100
98
<preclass="prettyprint source"><code>$ paperspace login</code></pre><p>See the previous section on <ahref="#obtaining-an-api-key">Obtaining an API key</a> for more information.</p>
101
99
<p>2) An environment variable: <code>PAPERSPACE_API_KEY</code>. Example:</p>
@@ -144,7 +142,7 @@ <h2 id="bugs-support-troubleshooting">Bugs / Support / Troubleshooting</h2>
144
142
<p>For bugs with the API client, command-line utility, or the HTTP API, please file tickets using GitHub Issues on this repo. We'll do our best to respond as quickly as we can. Keep in mind that Paperspace is a small team and you may need to allow up to a week for a response.</p>
145
143
<p>Other issues, such as those related to your Paperspace account, your team or team members, billing, or technical issues with your Paperspace machines should be directed to <ahref="mailto:support@paperspace.com">support@paperspace.com</a>.</p>
146
144
<h2id="security">Security</h2>
147
-
<p>Think you've discovered a security flaw or exploit? We offer bug bounties for responsible vulnerability disclosures that match our criteria. Please contact us directly at <ahref="mailto:support@paperspace.com">support@paperspace.com</a> and we will respond as quickly as we can.</p>
145
+
<p>Think you've discovered a security flaw or exploit? Please contact us directly at <ahref="mailto:support@paperspace.com">support@paperspace.com</a> and we will respond as quickly as we can.</p>
148
146
<h2id="disclaimer">Disclaimer</h2>
149
147
<p><strong>Use the Paperspace API with care.</strong> This tool is provided as-is (please see our LICENSE). Know that many actions provided via our public API can result in billing charges for Paperspace services. Please be aware of Paperspace's billing policies before performing any of these actions; you'll see charges reflected in your invoice at the end of the month. Some actions, such as deactivating machines, are irreversible, resulting in permanent loss of data. Paperspace cannot recover lost data such as mistakenly deleted account information, and may only be able to give limited assistance if an action is performed mistakenly. API access will be disabled for accounts not in good standing. Keeping your account credentials secret is your responsibility. You may only use Paperspace's API to store, retrieve, query, serve, and execute content that is owned, licensed or lawfully obtained by you.</p>
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Mon Feb 11 2019 13:09:54 GMT-0500 (EST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
164
+
Documentation generated by <ahref="https://github.com/jsdoc3/jsdoc">JSDoc 3.5.5</a> on Wed Apr 03 2019 16:29:22 GMT+0200 (CEST) using the <ahref="https://github.com/clenemt/docdash">docdash</a> theme.
0 commit comments