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
help="Base directory for pulled files (default: humanloop/)",
102
+
"--local-files-directory",
103
+
"--local-dir",
104
+
help="Directory (relative to the current working directory) where Humanloop files are stored locally (default: humanloop/).",
104
105
default="humanloop",
105
106
type=click.Path(),
106
107
)
@@ -151,7 +152,7 @@ def cli(): # Does nothing because used as a group for other subcommands (pull,
151
152
"-p",
152
153
help="Path in the Humanloop workspace to pull from (file or directory). You can pull an entire directory (e.g. 'my/directory') "
153
154
"or a specific file (e.g. 'my/directory/my_prompt.prompt'). When pulling a directory, all files within that directory and its subdirectories will be included. "
154
-
"If not specified, pulls from the root of the workspace.",
155
+
"If not specified, pulls from the root of the remote workspace.",
155
156
default=None,
156
157
)
157
158
@click.option(
@@ -179,7 +180,7 @@ def pull(
179
180
environment: Optional[str],
180
181
api_key: Optional[str],
181
182
env_file: Optional[str],
182
-
base_dir: str,
183
+
local_files_directory: str,
183
184
base_url: Optional[str],
184
185
verbose: bool,
185
186
quiet: bool,
@@ -189,13 +190,13 @@ def pull(
189
190
\b
190
191
This command will:
191
192
1. Fetch Prompt and Agent files from your Humanloop workspace
192
-
2. Save them to your local filesystem (default directory: humanloop/)
193
+
2. Save them to your local filesystem (directory specified by --local-files-directory, default: humanloop/)
193
194
3. Maintain the same directory structure as in Humanloop
194
195
4. Add appropriate file extensions (.prompt or .agent)
195
196
196
197
\b
197
-
The fileswill be saved with the following structure:
198
-
humanloop/
198
+
For example, with the default --local-files-directory=humanloop, files will be saved as:
199
+
./humanloop/
199
200
├── my_project/
200
201
│ ├── prompts/
201
202
│ │ ├── my_prompt.prompt
@@ -207,12 +208,17 @@ def pull(
207
208
└── prompts/
208
209
└── other_prompt.prompt
209
210
211
+
\b
212
+
If you specify --local-files-directory=data/humanloop, files will be saved in ./data/humanloop/ instead.
213
+
210
214
If a file exists both locally and in the Humanloop workspace, the local file will be overwritten
211
215
with the version from Humanloop. Files that only exist locally will not be affected.
212
216
213
217
Currently only supports syncing Prompt and Agent files. Other file types will be skipped."""
0 commit comments