Skip to content

Commit 555dad3

Browse files
committedSep 5, 2024··
adding note in npm package migration post about using the tee command
1 parent 5a8945b commit 555dad3

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed
 

‎_posts/2023-09-08-github-packages-migrate-npm-packages.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,13 @@ You can call the script via:
5252
<source-org> \
5353
<source-host> \
5454
<target-org> \
55-
<target-host>
55+
<target-host> \
56+
| tee output.log
5657
```
5758

59+
> The `| tee output.log` will print the output to the console and also save it to a file. You can refer back to the log file later and search for errors.
60+
{: .prompt-tip }
61+
5862
### Example
5963

6064
An example of this in practice:
@@ -67,7 +71,8 @@ export GH_TARGET_PAT=ghp_xyz
6771
joshjohanning-org \
6872
github.com \
6973
joshjohanning-org-packages \
70-
github.com
74+
github.com \
75+
| tee output.log
7176
```
7277

7378
## Notes

0 commit comments

Comments
 (0)