Using Shell (macOS, Linux, and Windows using WSL):
curl -fsSL https://console.paperspace.com/install.sh | sh
Using Scoop (Windows):
Note Coming soon
scoop bucket add pspace https://github.com/Paperspace/scoop-bucket.git scoop install pspace
Using Homebrew (macOS and Linux):
Note Coming soon
brew tap paperspace/tap brew install pspace
Run pspace --help
in your terminal.
pspace [command] [flags]
Command | Description |
---|---|
pspace |
A CLI for using the Paperspace API. |
pspace completion |
Generate an autocompletion script for the specified shell |
pspace completion bash |
Generate an autocompletion script for the bash shell |
pspace completion fish |
Generate an autocompletion script for the fish shell |
pspace completion zsh |
Generate an autocompletion script for the zsh shell |
pspace config |
Manage your local Paperspace configuration. |
pspace config delete |
Delete a configuration value. |
pspace config get |
Get a configuration value. |
pspace config set |
Set a configuration value. |
pspace console |
Open the Paperspace web console. |
pspace deployment |
Effortlessly deploy ML apps to Paperspace. |
pspace deployment get |
|
pspace deployment init |
|
pspace deployment list |
|
pspace deployment up |
|
pspace docs |
Open Paperspace documention in your default browser. |
pspace help |
Show help for a pspace command |
pspace help commands |
List pspace commands |
pspace login |
Log in to the CLI. |
pspace logout |
Log out of the CLI. |
pspace project |
Manage your Paperspace projects. |
pspace project create |
Create a new project |
pspace project get |
Get a project. |
pspace project list |
List projects. |
pspace project update |
Update an existing project. |
pspace signup |
Sign up for a Paperspace account. |
pspace upgrade |
Upgrade �[1mpspace�[22m to the latest version. |
pspace version |
Show version information |
A CLI for using the Paperspace API.
It allows you to authenticate, launch deployments, do logging, and more.
- Deploy an ML app with the
deployment
command - View a deployed app with the
deployment open
command - Check the status of a deployment with the
deployment status
command
Read the full documentation at: https://docs.paperspace.com/
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Generate an autocompletion script for pspace in the specified shell. See each sub-command's help for details on how to use the generated script.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Generate the autocompletion script for the bash shell.
This script depends on the bash-completion
package. If it is not installed
already, you can install it via your OS's package manager.
To load completions in your current shell session:
$ source <(pspace completion bash)
To load completions for every new session, execute once:
Linux:
$ pspace completion bash > /etc/bash_completion.d/pspace
MacOS:
$ pspace completion bash > /usr/local/etc/bash_completion.d/pspace
You will need to start a new shell for this setup to take effect.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Generate the autocompletion script for the fish shell.
To load completions in your current shell session:
$ pspace completion fish | source
To load completions for every new session, execute once:
$ pspace completion fish > ~/.config/fish/completions/pspace.fish
You will need to start a new shell for this setup to take effect.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--no-descriptions | boolean |
No | Disable completion descriptions |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Generate the autocompletion script for the zsh shell.
If shell completion is not already enabled in your environment you will need to enable it. You can execute the following once:
$ echo "autoload -U compinit; compinit" >> ~/.zshrc
To load completions for every new session, execute once:
Linux:
$ pspace completion zsh > "${fpath[1]}/_pspace"
macOS:
$ pspace completion zsh > /usr/local/share/zsh/site-functions/_pspace
Oh My Zsh:
$ pspace completion zsh > ~/.oh-my-zsh/completions/_pspace
You will need to start a new shell for this setup to take effect.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--no-descriptions | boolean |
No | Disable completion descriptions |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command manages your Paperspace configuration. You can use it to set, get, and delete configuration values. Running this command without any subcommands will print your current configuration.
Your configuration is stored in a TOML file at ~/.paperspace/config.toml
.
For example, to set the current team, run:
pspace config set team "my-team"
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Delete a configuration value.
The key to delete.
Type | Variadic? | Description |
---|---|---|
"version" | "team" | "locale" |
No | The configuration key. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command gets a configuration value. You can pass a key to get a specific value, or you can pass no arguments to get all configuration values.
For example, to get the current team run:
pspace config get team
The key to get.
Type | Variadic? | Description |
---|---|---|
"version" | "team" | "locale" |
No | The configuration key. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Set a configuration value.
The key/value pair to set.
Type | Variadic? | Description |
---|---|---|
"version" | "team" | "locale" |
No | The configuration key. |
string |
No | The new configuration value. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command opens the Paperspace web console in your browser.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Effortlessly deploy ML apps to Paperspace.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command opens the Paperspace documentation in your browser. You can optionally pass an argument that will take you to a specific docs page.
Valid pages are:
d
,deployment
Type | Variadic? | Description |
---|---|---|
"d" | "deployment" |
No | The page to open |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Show help for a pspace command
Type | Variadic? | Description |
---|---|---|
"project" | "deployment" | "upgrade" | "config" | "signup" | "console" | "docs" | "logout" | "login" | "version" | "completion" | "help" |
No | The command to show help for. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
List pspace commands
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--all, -a | boolean |
No | Show all commands, including hidden ones |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Log in to the CLI using your Paperspace API key or by opening the web console.
Type | Variadic? | Description |
---|---|---|
string |
No | An API key to log in with. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Log out of the CLI for the current team, a specific team, or all teams.
The teams to logout of.
Type | Variadic? | Description |
---|---|---|
string |
Yes | The team to logout of. |
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--all, -a | boolean |
No | Log out of all teams. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Manage your Paperspace projects.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Create a new project. This command will prompt you for a name if you don't provide one.
Create a project with these properties.
Type | Variadic? | Description |
---|---|---|
string |
No |
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--fields, -F | string |
No | The fields to include in the response. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Get a project by its ID. If you don't provide an ID, this command will prompt you for one based on the projects you have access to.
Type | Variadic? | Description |
---|---|---|
string |
No | The project ID to get. |
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--fields, -F | string |
No | The fields to include in the response. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
List projects in your team.
Examples:
Pick a subset of fields to display:
zcli.json -F handle -F name -F dtCreated
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--limit | number |
No | The number of projects to return in the next page. | |
--after | string |
No | The cursor to fetch the next results from. | |
--orderBy | "dtCreated" |
No | The field to order projects by. | |
--asc | boolean |
No | Whether to order projects ascending. | |
--desc | boolean |
No | Whether to order projects descending. | |
--fields, -F | string |
No | The fields to include in the response. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Update an existing project.
Example:
pspace project update psukfyemho7 --name my-cool-project
Type | Variadic? | Description |
---|---|---|
string |
No | The project ID to update. |
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--name | string |
No | The new name for the project. | |
--fields, -F | string |
No | The fields to include in the response. |
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command opens the Paperspace signup page in your browser.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
This command upgrades �[1mpspace�[22m to the latest version.
If you used a package manager like brew
to install pspace
, you should use
that to upgrade in order to avoid potential permissions issues. For example, for
brew
you can upgrade by running:
brew upgrade pspace
If you installed pspace
using the install script, you can upgrade by running:
pspace upgrade
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |
Shows version information command, including version number and build date.
These flags are available on all commands.
Name | Type | Required? | Default | Description |
---|---|---|---|---|
--log-level, -l | "debug" | "info" | "warning" | "error" | "critical" |
No | Enable debug logging. Options are: debug, info, warning, error, and critical | |
--json, -j | boolean |
No | Output JSON | |
--api-key | string |
No | A Paperspace public API Key used for authenticating requests | |
--help, -h | boolean |
No | Show help for a command |