Skip to content

Commit de35a08

Browse files
authored
Use debug-files upload instead of upload-dif (#7091)
1 parent f70884b commit de35a08

File tree

15 files changed

+40
-40
lines changed

15 files changed

+40
-40
lines changed

src/docs/clients/cocoa/dsym.mdx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ There are two ways to download the dSYM from iTunesConnect. After you do one of
5656
Afterwards manually upload the symbols with _sentry-cli_:
5757

5858
```bash
59-
sentry-cli --auth-token YOUR_AUTH_TOKEN upload-dif --org YOUR_ORG_SLUG --project YOUR_PROJECT_SLUG PATH_TO_DSYMS
59+
sentry-cli --auth-token YOUR_AUTH_TOKEN debug-files upload --org YOUR_ORG_SLUG --project YOUR_PROJECT_SLUG PATH_TO_DSYMS
6060
```
6161

6262
<Note>
@@ -114,7 +114,7 @@ if which sentry-cli >/dev/null; then
114114
export SENTRY_ORG=___ORG_SLUG___
115115
export SENTRY_PROJECT=___PROJECT_SLUG___
116116
export SENTRY_AUTH_TOKEN=YOUR_AUTH_TOKEN
117-
ERROR=$(sentry-cli upload-dif "$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)
117+
ERROR=$(sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)
118118
if [ ! $? -eq 0 ]; then
119119
echo "warning: sentry-cli - $ERROR"
120120
fi
@@ -153,10 +153,10 @@ Your dSYM file can be upload manually by you (or some automated process) with th
153153

154154
Download and install [sentry-cli](https://github.com/getsentry/sentry-cli/releases) — The best place to put this is in the _/usr/local/bin/_ directory.
155155

156-
Then run this (note that `--auth-token` needs to go before `upload-dif`):
156+
Then run this:
157157

158158
```bash
159-
sentry-cli --auth-token YOUR_AUTH_TOKEN upload-dif --org YOUR_ORG_SLUG --project YOUR_PROJECT_SLUG PATH_TO_DSYMS
159+
sentry-cli --auth-token YOUR_AUTH_TOKEN debug-files upload --org YOUR_ORG_SLUG --project YOUR_PROJECT_SLUG PATH_TO_DSYMS
160160
```
161161

162162
<Note>

src/docs/clients/react-native/manual-setup.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ If you wish to upload the source maps and symbols to Sentry, create a new Run Sc
8080
```bash
8181
export SENTRY_PROPERTIES=../sentry.properties
8282

83-
../node_modules/@sentry/cli/bin/sentry-cli upload-dif "$DWARF_DSYM_FOLDER_PATH"
83+
../node_modules/@sentry/cli/bin/sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH"
8484
```
8585

8686
For bitcode enabled builds via iTunes Connect, additional steps are required.
@@ -176,7 +176,7 @@ fi
176176
[ -z "$NODE_BINARY" ] && export NODE_BINARY="node"
177177

178178
# Run sentry cli script to upload debug symbols
179-
$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli upload-dif "$DWARF_DSYM_FOLDER_PATH"
179+
$NODE_BINARY ../node_modules/@sentry/cli/bin/sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH"
180180
```
181181

182182
## Android

src/docs/product/cli/dif.mdx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ to look for them:
5050
sentry-cli difutil find <identifier>
5151
```
5252

53-
Additionally, `sentry-cli upload-dif` can automatically search for files in a
53+
Additionally, `sentry-cli debug-files upload` can automatically search for files in a
5454
folder or ZIP archive.
5555

5656
## Creating Source Bundles
@@ -62,7 +62,7 @@ containing all source files referenced by a specific debug information file.
6262

6363
This is particularly useful when building and uploading debug information files
6464
are detached. In this case, a source bundle can be created when building and can
65-
be uploaded at any later point in time with `sentry-cli upload-dif`.
65+
be uploaded at any later point in time with `sentry-cli debug-files upload`.
6666

6767
To create a source bundle, use the `difutil bundle-sources` command on a list of
6868
debug information files:
@@ -72,23 +72,23 @@ debug information files:
7272
sentry-cli difutil bundle-sources /path/to/files...
7373

7474
# at any later time:
75-
sentry-cli upload-dif --type sourcebundle /path/to/bundles...
75+
sentry-cli debug-files upload --type sourcebundle /path/to/bundles...
7676
```
7777

7878
To create multiple source bundles for all debug information files, use the
7979
command on each file individually.
8080

81-
Alternatively, add the `--include-sources` option to the `upload-dif` command,
81+
Alternatively, add the `--include-sources` option to the `debug-files upload` command,
8282
which generates source bundles on the fly during the upload. This requires that
8383
the upload is performed on the same machine as the application build:
8484

8585
```bash
86-
sentry-cli upload-dif --include-sources /path/to/files...
86+
sentry-cli debug-files upload --include-sources /path/to/files...
8787
```
8888

8989
## Uploading Files
9090

91-
Use the `sentry-cli upload-dif` command to upload debug information files to
91+
Use the `sentry-cli debug-files upload` command to upload debug information files to
9292
Sentry. The command will recursively scan the provided folders or ZIP archives.
9393
Files that have already been upload are skipped automatically.
9494

@@ -108,7 +108,7 @@ to [Working with Projects](/product/cli/configuration/#sentry-cli-working-with-p
108108
A basic debug file upload can be started with:
109109

110110
```bash
111-
sentry-cli upload-dif -o <org> -p <project> /path/to/files...
111+
sentry-cli debug-files upload -o <org> -p <project> /path/to/files...
112112

113113
> Found 2 debug information files
114114
> Prepared debug information files for upload
@@ -126,7 +126,7 @@ specify `--wait` in the CLI, which will block until server-side analysis is
126126
complete:
127127

128128
```bash
129-
sentry-cli upload-dif -o <org> -p <project> --wait /path/to/files...
129+
sentry-cli debug-files upload -o <org> -p <project> --wait /path/to/files...
130130

131131
> Found 2 debug information files
132132
> Prepared debug information files for upload
@@ -143,7 +143,7 @@ There are a few options you can supply to the upload command:
143143

144144
`--wait`
145145

146-
: Wait for server-side processing of uploaded files. By default, `upload-dif`
146+
: Wait for server-side processing of uploaded files. By default, `debug-files upload`
147147
completes once the debug files have been uploaded to Sentry. After this,
148148
Sentry analyzes the files and makes them available for symbolication. It makes
149149
sense to specify `--wait` to ensure that debug files are ready before sending
@@ -223,7 +223,7 @@ many useful symbols. In that case, the sentry-cli upload will warn you that it
223223
needs BCSymbolMaps:
224224

225225
```bash
226-
sentry-cli upload-dif ...
226+
sentry-cli debug-files upload ...
227227
> Found 34 debug information files
228228
> Warning: Found 10 symbol files with hidden symbols (need BCSymbolMaps)
229229
```
@@ -233,7 +233,7 @@ are generated by the Xcode build process. Supply the `--symbol-maps` parameter
233233
and point it to the folder containing the symbol maps:
234234

235235
```bash
236-
sentry-cli upload-dif --symbol-maps path/to/symbolmaps path/to/debug/symbols
236+
sentry-cli debug-files upload --symbol-maps path/to/symbolmaps path/to/debug/symbols
237237
```
238238

239239
### Breakpad Files
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
sentry-cli login
3+
sentry-cli debug-files upload -o {YOUR ORGANISATION} -p {PROJECT} build/intermediates/merged_native_libs/{buildVariant}
4+
```
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
```bash
2+
sentry-cli login
3+
sentry-cli debug-files upload -o {YOUR ORGANISATION} -p {PROJECT} bin/Release
4+
```

src/platform-includes/upload-dif/native.mdx renamed to src/platform-includes/debug-files/native.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
```bash
2-
sentry-cli upload-dif -o <org> -p <project> /path/to/myfile.debug.wasm
2+
sentry-cli debug-files upload -o <org> -p <project> /path/to/myfile.debug.wasm
33

44
> Found 2 debug information files
55
> Prepared debug information files for upload

src/platform-includes/upload-dif/native.wasm.mdx renamed to src/platform-includes/debug-files/native.wasm.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
```bash
22
wasm-split /path/to/myfile.wasm -d /path/to/myfile.debug.wasm --strip
3-
sentry-cli upload-dif -o <org> -p <project> /path/to/files
3+
sentry-cli debug-files upload -o <org> -p <project> /path/to/files
44

55
> Found 1 debug information files
66
> Prepared debug information files for upload

src/platform-includes/debug-symbols-apple/_default.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ If this is your situation, please read [Info.plist Is Missing in Xcode 13 — He
2020

2121
## Sentry-cli
2222

23-
Use the `sentry-cli upload-dif` command to upload dSYMs to Sentry. The command will recursively scan the provided folders or ZIP archives. Files that have already been uploaded will be skipped automatically.
23+
Use the `sentry-cli debug-files upload` command to upload dSYMs to Sentry. The command will recursively scan the provided folders or ZIP archives. Files that have already been uploaded will be skipped automatically.
2424

2525
Sentry can display snippets of your code next to the event stacktraces. This feature is called <PlatformLink to="/data-management/debug-files/source-context/">source context</PlatformLink>. When setting the `--include-sources` option, sentry-cli will scan your debug files to find references to the source code files, resolve them in the local file system, bundle them up, and upload them to Sentry.
2626

2727
```bash
28-
sentry-cli upload-dif --auth-token YOUR_AUTH_TOKEN \
28+
sentry-cli debug-files upload --auth-token YOUR_AUTH_TOKEN \
2929
--org ___ORG_SLUG___ \
3030
--project ___PROJECT_SLUG___ \
3131
PATH_TO_DSYMS
@@ -68,7 +68,7 @@ Follow these steps to upload the debug symbols:
6868
1. Download and install [sentry-cli](/product/cli/installation/).
6969
2. Copy the script below into a new _Run Script_ and set your _AUTH_TOKEN_, _ORG_SLUG_, and _PROJECT_SLUG_.
7070

71-
Sentry can display snippets of your code next to the event stacktraces. This feature is called <PlatformLink to="/data-management/debug-files/source-context/">source context</PlatformLink>. When setting the `--include-sources` option, sentry-cli will scan your debug files to find references to the source code files, resolve them in the local file system, bundle them up, and upload them to Sentry. Simply change `sentry-cli upload-dif` to `sentry-cli upload-dif --include-sources` in the copied script.
71+
Sentry can display snippets of your code next to the event stacktraces. This feature is called <PlatformLink to="/data-management/debug-files/source-context/">source context</PlatformLink>. When setting the `--include-sources` option, sentry-cli will scan your debug files to find references to the source code files, resolve them in the local file system, bundle them up, and upload them to Sentry. Simply change `sentry-cli debug-files upload` to `sentry-cli debug-files upload --include-sources` in the copied script.
7272

7373
<Alert level="" title="Warnings vs. Errors">
7474

@@ -83,7 +83,7 @@ if which sentry-cli >/dev/null; then
8383
export SENTRY_ORG=___ORG_SLUG___
8484
export SENTRY_PROJECT=___PROJECT_SLUG___
8585
export SENTRY_AUTH_TOKEN=YOUR_AUTH_TOKEN
86-
ERROR=$(sentry-cli upload-dif "$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)
86+
ERROR=$(sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH" 2>&1 >/dev/null)
8787
if [ ! $? -eq 0 ]; then
8888
echo "warning: sentry-cli - $ERROR"
8989
fi
@@ -97,7 +97,7 @@ if which sentry-cli >/dev/null; then
9797
export SENTRY_ORG=___ORG_SLUG___
9898
export SENTRY_PROJECT=___PROJECT_SLUG___
9999
export SENTRY_AUTH_TOKEN=YOUR_AUTH_TOKEN
100-
ERROR=$(sentry-cli upload-dif "$DWARF_DSYM_FOLDER_PATH" --force-foreground 2>&1 >/dev/null)
100+
ERROR=$(sentry-cli debug-files upload "$DWARF_DSYM_FOLDER_PATH" --force-foreground 2>&1 >/dev/null)
101101
if [ ! $? -eq 0 ]; then
102102
echo "error: sentry-cli - $ERROR"
103103
fi
@@ -187,4 +187,4 @@ If you’re using Xcode 13, you’ll need to download the dSYMs from App Store C
187187
- Click the build number to go into the "detail" page, and click _Download dSYM_.
188188
- Manually upload the dSYMs with [sentry-cli](#sentry-cli).
189189

190-
These dSYMs contain obfuscated symbol names and paths. You must upload the BCSymbolMap file stored in your xcarchive so Sentry can properly symbolicate your crash reports. You can do this by using the upload-dif command of either [sentry-cli](#sentry-cli) or the [Sentry Fastlane plugin](#fastlane), which will automatically find and upload all BCSymbolMap files when specifying the path to the app's xcarchive.
190+
These dSYMs contain obfuscated symbol names and paths. You must upload the BCSymbolMap file stored in your xcarchive so Sentry can properly symbolicate your crash reports. You can do this by using the `debug-files upload` command of either [sentry-cli](#sentry-cli) or the [Sentry Fastlane plugin](#fastlane), which will automatically find and upload all BCSymbolMap files when specifying the path to the app's xcarchive.

src/platform-includes/upload-dif/android.mdx

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/platform-includes/upload-dif/dotnet.mdx

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/platforms/common/data-management/debug-files/upload/index.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ The remaining information on this page describes invoking the Sentry CLI manuall
3939
</Note>
4040
</PlatformSection>
4141

42-
<PlatformContent includePath="upload-dif">
42+
<PlatformContent includePath="debug-files">
4343

44-
Files can be uploaded using the `upload-dif` command. This command will scan a
44+
Files can be uploaded using the `debug-files upload` command. This command will scan a
4545
given folder recursively for files and upload them to Sentry:
4646

4747
</PlatformContent>
@@ -51,7 +51,7 @@ Information_](/product/cli/dif/#uploading-files).
5151

5252
Debug files should be uploaded before deploying or releasing your
5353
application so that crash reports can be processed. For manual testing, use the
54-
`sentry-cli upload-dif --wait` before sending the first native crash or error
54+
`sentry-cli debug-files upload --wait` before sending the first native crash or error
5555
event.
5656

5757
If you upload a file that was previously reported as missing by Sentry in a crash

src/platforms/javascript/guides/cordova/upload-debug.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,6 @@ if [ ! -f $SENTRY_PROPERTIES ]; then
3333
fi
3434
echo "# Reading property from $SENTRY_PROPERTIES"
3535
SENTRY_CLI=$(getProperty "cli.executable")
36-
SENTRY_COMMAND="$SENTRY_CLI upload-dif \"$DWARF_DSYM_FOLDER_PATH\""
36+
SENTRY_COMMAND="$SENTRY_CLI debug-files upload \"$DWARF_DSYM_FOLDER_PATH\""
3737
$SENTRY_COMMAND
3838
```

src/platforms/react-native/upload-debug.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ Upload the [Android ProGuard/R8 mapping files and native symbols](/platforms/and
1818

1919
## Uploading With sentry-cli
2020

21-
Upload the [Android ProGuard/R8 mapping files and native symbols](/product/cli/) manually by using `sentry-cli` [upload-proguard](/product/cli/dif/#proguard-mapping-upload) and [upload-dif](/product/cli/dif/#uploading-files).
21+
Upload the [Android ProGuard/R8 mapping files and native symbols](/product/cli/) manually by using `sentry-cli` [upload-proguard](/product/cli/dif/#proguard-mapping-upload) and [debug-files](/product/cli/dif/#uploading-files).

src/platforms/unity/native-support/index.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,5 +68,5 @@ With `bitcode` disabled, the automated symbols upload will pick up the `dSYM` fi
6868
If you don't want to rely on the automated symbol upload, you can run `sentry-cli` through the commandline. For that, you can use the provided executables from within the package or follow the [sentry-cli documentation](/product/cli/installation/) to make it available globally. To upload debug symbols, run it with:
6969

7070
```bash
71-
sentry-cli --auth-token YOUR_AUTH_TOKEN upload-dif --org ___ORG_SLUG___ --project ___PROJECT_SLUG___ PATH_TO_SYMBOLS
71+
sentry-cli --auth-token YOUR_AUTH_TOKEN debug-files upload --org ___ORG_SLUG___ --project ___PROJECT_SLUG___ PATH_TO_SYMBOLS
7272
```

src/platforms/unreal/debug-symbols.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ The automated debug symbols upload is disabled by default and requires configura
2020
To upload debug symbols to Sentry manually, run `sentry-cli` through the command line. You can either use the provided executables from within the package, or follow the [sentry-cli documentation](/product/cli/installation/) to make it available globally. To upload debug symbols run the following command:
2121

2222
```bash
23-
sentry-cli --auth-token YOUR_AUTH_TOKEN upload-dif --org ___ORG_SLUG___ --project ___PROJECT_SLUG___ PATH_TO_SYMBOLS
23+
sentry-cli --auth-token YOUR_AUTH_TOKEN debug-files upload --org ___ORG_SLUG___ --project ___PROJECT_SLUG___ PATH_TO_SYMBOLS
2424
```

0 commit comments

Comments
 (0)