The VuforiaWebService.CLI is a command-line interface tool for interacting with the Vuforia platform. It allows users to manage targets, retrieve data, and perform various operations on the Vuforia database using their access and secret keys.
- List all targets in the database
- Retrieve details for a specific target
- Insert new targets
- Update existing targets
- Delete targets
- Check for similar targets
- Generate summary reports
- Get a summary of the database
- .NET SDK (version 6.0 or higher)
- Vuforia Access Key and Secret Key
You have three options for installing the VuforiaWebService.CLI:
-
Clone the repository:
git clone https://github.com/gachris/VuforiaWebService.CLI.git cd VuforiaWebService.CLI
-
Restore dependencies:
dotnet restore
-
Publish the application:
dotnet publish --configuration Release --output ./publish --self-contained true --runtime win-x64 -p:PublishSingleFile=true -p:PublishTrimmed=true -p:DebugType=None
-
After publishing, navigate to the
./publish
directory to find the executable.
-
Clone the repository:
git clone https://github.com/gachris/VuforiaWebService.CLI.git cd VuforiaWebService.CLI
-
Restore dependencies:
dotnet restore
-
Package the application as a tool:
dotnet pack --configuration Release -p:PackAsTool=true -p:ToolCommandName=Vuforia
-
Install the tool globally from the local source:
dotnet tool install --global --add-source "C:\Users\chris\source\repos\VuforiaWebService.CLI\nupkgs" VuforiaWebService.CLI
You can also install the tool directly from NuGet.org:
-
Open your command line or terminal.
-
Run the following command:
dotnet tool install --global VuforiaWebService.CLI
Alternatively, you can find the package on NuGet.org for more details.
To use the Vuforia CLI app, you must provide your access key and secret key as command-line arguments. Below are some examples of how to use the app:
vuforia --access-key <your_access_key> --secret-key <your_secret_key> list
vuforia --access-key <your_access_key> --secret-key <your_secret_key> get --target-id <target_id>
vuforia --access-key <your_access_key> --secret-key <your_secret_key> insert --target-name "SampleTarget" --target-width 1 --target-image "<path_to_your_image>" --target-active-flag true --target-metadata "<your_target_metadata>"
vuforia --access-key <your_access_key> --secret-key <your_secret_key> update --target-id <target_id> --target-name "UpdatedTarget" --target-width 1 --target-image "C:\Users\YourUsername\Pictures\sample_image.jpg" --target-active-flag true --target-metadata "This is a sample target for demonstration."
vuforia --access-key <your_access_key> --secret-key <your_secret_key> delete --target-id <target_id>
vuforia --access-key <your_access_key> --secret-key <your_secret_key> check-similar --target-id <target_id>
vuforia --access-key <your_access_key> --secret-key <your_secret_key> summary-report --target-id <target_id>
vuforia --access-key <your_access_key> --secret-key <your_secret_key> database-summary
--access-key <your_access_key>
: Your Vuforia server access key for authentication.--secret-key <your_secret_key>
: Your Vuforia server secret key for authentication.
- No additional parameters needed.
--target-id <target_id>
: Unique identifier of the target.
--target-name "SampleTarget"
: Name for the new target.--target-width 1
: Width of the target in units.--target-image "<path_to_your_image>"
: File path to the target image.--target-active-flag true
: Activation status of the target.--target-metadata "<your_target_metadata>"
: Metadata associated with the target.
--target-id <target_id>
: Unique identifier of the target to update.- Other parameters: Same as for inserting a new target.
--target-id <target_id>
: Unique identifier of the target to delete.
--target-id <target_id>
: Unique identifier of the target for similarity checks.
--target-id <target_id>
: Unique identifier of the target for which to generate a report.
- No additional parameters needed.
- You can also run the CLI application using the
dotnet
command:dotnet run --access-key <your_access_key> --secret-key <your_secret_key> list
- Replace all placeholder values (
<...>
) with your actual Vuforia credentials and target information. - Handle your access and secret keys securely to prevent unauthorized access to your Vuforia account.
This project is licensed under the MIT License. See the LICENSE file for details.
If you would like to contribute to this project, please fork the repository and submit a pull request.
- Vuforia for providing the AR platform.
To uninstall the tool globally:
dotnet tool uninstall --global VuforiaWebService.CLI
To update the tool globally:
dotnet tool update --global VuforiaWebService.CLI