For the complete documentation index, see llms.txt. This page is also available as Markdown.

p0 file-transfer

Overview

The p0 file-transfer command copies a local file to an AWS EC2 instance. In a single command, P0 requests just-in-time access, uploads the file to a temporary S3 staging bucket, connects to the instance over SSH, and has the instance download the file from the bucket with curl.

For setup, the full transfer flow, and troubleshooting, see the File Transfer integration guide.


Prerequisites

  • Logged-in user

p0 login <org-slug>

Syntax

p0 file-transfer <source> <destination> [options]

Positional Arguments

Argument
Description

source

Path to the local file to transfer. Must point to a regular file.

destination

Instance ID or name of the target EC2 instance β€” the same identifier you use for p0 ssh.


Options

Flag
Type
Description

--reason <text>

string

The reason you need access. Approvers see this when they review the request.

--debug

boolean

Print debug information, such as the download URL's expiry and underlying AWS errors.


Examples

Transfer a local config.yaml to instance i-1234567890abcdef0:

P0 prompts you through approval, uploads the file, and downloads it to your home directory on the instance, at /home/<your-username>/config.yaml.


Last updated