Skip to content

Commit

Permalink
Add support shell api token
Browse files Browse the repository at this point in the history
  • Loading branch information
franklupo committed Jul 30, 2020
1 parent 76be687 commit d1cd2df
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Options:
-?|-h|--help Show help information
--version Show version information
--host The host name host[:port],host1[:port],host2[:port]
--api-token Api token format 'USER@REALM!TOKENID=UUID'. Require Proxmox VE 6.2 or later
--username User name <username>@<realm>
--password The password. Specify 'file:path_file' to store password in file.
Expand Down Expand Up @@ -78,6 +79,13 @@ this software aims to simplify the management of Proxmox VE single node or clust
* Interactive shell
* Support multiple host for HA in --host parameter es. host[:port],host1[:port],host2[:port]
* Check-Update and Upgrade application
* Use Api token --api-token parameter

## Api token

From version 6.2 of Proxmox VE is possible to use [Api token](https://pve.proxmox.com/pve-docs/pveum-plain.html).
This feature permit execute Api without using user and password.
If using **Privilege Separation** when create api token remember specify in permission.

## Configuration and use

Expand Down Expand Up @@ -115,7 +123,7 @@ Arguments:
Options:
-v|--verbose Show verbose output
-o|--output Type output (default: unicode) Unicode, UnicodeAlt, Markdown, Text, Json, JsonPretty, Html, Png
--wait Wait for task finish
--wait Wait for task finish
-?|-h|--help Show help information
```

Expand Down
6 changes: 3 additions & 3 deletions src/Corsinvest.ProxmoxVE.Cli/Corsinvest.ProxmoxVE.Cli.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<Version>1.6.0</Version>
<Version>1.6.1</Version>
<TargetFramework>netcoreapp3.1</TargetFramework>
<AssemblyName>cv4pve-cli</AssemblyName>
<Company>Corsinvest Srl</Company>
Expand All @@ -19,8 +19,8 @@
<TrimmerRootAssembly Include="System.Net.WebClient" />

<!-- <ProjectReference Include="..\..\..\cv4pve-api-dotnet\src\Corsinvest.ProxmoxVE.Api.Shell\Corsinvest.ProxmoxVE.Api.Shell.csproj" /> -->
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="2.6.0" />
<PackageReference Include="Corsinvest.ProxmoxVE.Api.Shell" Version="2.6.3" />
<PackageReference Include="ReadLine" Version="2.0.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20303.1" />
<PackageReference Include="System.CommandLine" Version="2.0.0-beta1.20371.2" />
</ItemGroup>
</Project>

0 comments on commit d1cd2df

Please sign in to comment.