Skip to content

Commit 9dbc582

Browse files
committed
added push an dpull using client.
1 parent dddf16d commit 9dbc582

File tree

1 file changed

+25
-12
lines changed

1 file changed

+25
-12
lines changed

examples/02_sync.ipynb

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -227,30 +227,43 @@
227227
"id": "506cfa68",
228228
"metadata": {},
229229
"source": [
230-
"You can now use `mergin push` command to push data to the server. You need to be in the same directory as your local project is located."
230+
"You can now use `push_project` method to push data to the server."
231231
]
232232
},
233233
{
234234
"cell_type": "code",
235-
"execution_count": null,
235+
"execution_count": 98,
236236
"id": "1a167b17",
237237
"metadata": {
238238
"vscode": {
239239
"languageId": "markdown"
240240
}
241241
},
242-
"outputs": [
243-
{
244-
"name": "stdout",
245-
"output_type": "stream",
246-
"text": [
247-
"\u001b[?25l [####################################] 100%\u001b[?25h\n",
248-
"Done\n"
249-
]
242+
"outputs": [],
243+
"source": [
244+
"client.push_project(LOCAL_FOLDER)"
245+
]
246+
},
247+
{
248+
"cell_type": "markdown",
249+
"id": "caccc6da",
250+
"metadata": {},
251+
"source": [
252+
"To pull the latest version of the project, use `pull_project` method."
253+
]
254+
},
255+
{
256+
"cell_type": "code",
257+
"execution_count": 99,
258+
"id": "90e5e64a",
259+
"metadata": {
260+
"vscode": {
261+
"languageId": "markdown"
250262
}
251-
],
263+
},
264+
"outputs": [],
252265
"source": [
253-
"!cd $LOCAL_FOLDER && mergin --username {LOGIN} --password {PASSWORD} push"
266+
"client.pull_project(LOCAL_FOLDER)"
254267
]
255268
},
256269
{

0 commit comments

Comments
 (0)