Skip to main content

uGet Cli

https://img.shields.io/pypi/v/ugetcli.svg https://img.shields.io/travis/AgeOfLearning/uget-cli.svg Documentation Status

uGet Command Line Interface

Installation

Disclaimer: This software is currently alpha. Stability is not guaranteed.

You can install this package using pip:

pip install ugetcli

Quickstart

uGet Package Manager for Unity - pack unity plugins into re-usable NuGet packages. Supports packing assets and correctly handles meta files (GUIDS).

cd MySolutionName/MyProjectName
uget build  // Build Visual Studio project
uget create // Create Unity Package (.unitypackage)
uget pack   // Create NuGet Package (.nupkg)
uget push   // Push to the NuGet feed

uget build

Builds Visual Studio project using msbuild.

Arguments:

-p / –path path to the Visual Studio Project (.csproj) or a directory containing one. Default: current working directory

-c / –configuration configuration: Debug or Release. Default: Release

-m / –msbuild-path path to the msbuild executable. If not provided, uget cli will try to automatically find it. Can be provided with MSBUILD_PATH environment variable. Default: determined based on the system

-r / –rebuild (flag) if provided, clean rebuild will be triggered. Default: False

uget create

Creates .unitypackage using Unity Editor.

Arguments:

-p / –path path to the Visual Studio Project (.csproj) or a directory containing one. Default: current working directory

-o / –output-dir output directory into which UnityPackage will be built. Default: “./Output” (relative to current working directory)

-c / –configuration configuration: Debug or Release. Default: Release

-t / –unity-project-path path to the Unity project used to build .unitypackage. Project can contain optional assets. Default: “./UnityProject” (relative to current working directory)

-r / –root-dir root directory inside the Unity Project into which assembly is copied. Used to export .unitypackage. If not provided, assembly name is used (relative to the unity-project-path).

–clean (flag) If set, cleans other .unitypackage files with the same configuration at the output location. Default: False (does not clean)

–unity-username provides username for Unity editor. Can be provided with UNITY_USERNAME environment variable.

–unity-password provides password for Unity editor. Can be provided with UNITY_PASSWORD environment variable.

–unity-serial provides serial for Unity editor. Can be provided with UNITY_SERIAL environment variable.

uget pack

Packs NuGet package (.nupkg) using NuGet. Includes Unity Package (.unitypackage) into it.

Arguments:

-p / –path path to Visual Studio project (.csproj) or .nuspec file, or a directory containing one. Default: current working directory

-o / –output-dir output NuGet package directory. Default: “./Output” (relative to current working directory)

-n / –nuget-path path to NuGet executable. Can be provided with NUGET_PATH environment variable.

-u / –unitypackage-path path to .unitypackage. Default: “./UnityProject” (relative to current working directory)

-c / –configuration configuration: Debug or Release. Default: “Release”

uget push

Push uGet Package (.nupkg) to the NuGet feed.

Arguments:

-p / –path path to NuGet Package (.nupkg) or Visual Studio project, or a directory containing one. Default: current working directory.

-o / –output-dir provides directory in which Nuget Package is being looked for. Used only if .nupkg is not provided via path. Optional. Default: No value

-f / –feed NuGet Feed URL. Default: No value. Must be provided explicitly.

-n / –nuget-path path to NuGet executable. Can be provided with NUGET_PATH environment variable. Default: no value

-a / –api-key NuGet Api Key. Can be provided with NUGET_API_KEY environment variable. Default: no value

Configuration file

–config-path As an alternative to command line arguments, configuration file can be provided. By default, uget.config.json will be used. Config file will be searched in the execution directory. You can provide custom config file by passing it’s path to the –config.

Example config file (uget.config.json):

{
    "output_dir": "../../Output",
    "unity_project_path": "../../UnityProjects/MyUnityProject",
    "clean": true,
    "configuration": "Debug",
    "root_dir": "Assets/MyUnityProject", // optional
    "assembly_relative_dir": "Editor", // optional
    "feed": "https://proget.aofl.com/nuget/AOFL-Unity-Development/"
}

You can override any command line parameter by using snake_case instead of dashed-options

Configuration json

–config You can pass configuration as a raw json instead of configuration file by passing –config:

uget build --config "{\"output_dir\": \"Output\"}"

Debug Mode

-d / –debug This flag can be provided to output more debug information and enable verbose logs from underlying tools.

Quiet Mode

-q / –quiet This flag can be provided to silence any user prompts.

History

0.1.0 (2018-09-12)

  • First release on PyPI.

Release files for ugetcli 0.4.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ugetcli 0.4.2
File Size Uploaded
ugetcli-0.4.2.tar.gz 27.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ugetcli 0.4.2
File Interpreter ABI Platform
ugetcli-0.4.2-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 44.5 kB

Release files / ugetcli-0.4.2.tar.gz

Download URL ugetcli-0.4.2.tar.gz
Size 27.4 kB
Tags Source
SHA-256 checksum
How to use checksums
db8f24ae31fc50ee2febd5aa960f1c9987f6e6019375a216ba97744947e7a328
BLAKE2b-256 checksum
How to use checksums
c8c6070488f2b91c7adaaac86966ec412042053a71c89546c0779e18c44ce298
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release files / ugetcli-0.4.2-py2.py3-none-any.whl

Download URL ugetcli-0.4.2-py2.py3-none-any.whl
Size 17.1 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
1e055d1cb6c92a89332faafeefc027fda6c5414c76300404043f2364b4c690c6
BLAKE2b-256 checksum
How to use checksums
6d04a9898398dd2551c395227fbbdfaa43e2911c2624b2fdd12cf13b5c105608
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/2.7.14

Release history Release notifications | RSS feed

This release

0.4.2 This release

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.8

2 release files

0.3.7

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.4

2 release files

0.3.3

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page