PlatformIO Community

PIO package command not available

Hi,
I try to build library package and then publish it, but “pio package pack” command states that Error: No such command “package”
I re-installed platformIO and still same problem version and help list under…
How to solve the problem?

C:>pio --version
PlatformIO, version 4.3.4

C:>pio -h
Usage: pio [OPTIONS] COMMAND [ARGS]…

Options:
–version Show the version and exit.
-f, --force DEPRECATE
-c, --caller TEXT Caller ID (service)
–no-ansi Do not print ANSI control characters
-h, --help Show this message and exit.

Commands:
account Manage PIO Account
boards Embedded Board Explorer
check Run a static analysis tool on code
ci Continuous Integration
debug PIO Unified Debugger
device Monitor device or list existing
home PIO Home
lib Library Manager
platform Platform Manager
project Project Manager
remote PIO Remote
run Process project environments
settings Manage PlatformIO settings
system Miscellaneous system commands
test Unit Testing
update Update installed platforms, packages and libraries
upgrade Upgrade PlatformIO to the latest version

You need a bleeding edge version of PIO to do that.

$ pio upgrade --dev
Please wait while upgrading PlatformIO ...
PlatformIO has been successfully upgraded to 4.4.0a7
Release notes: https://docs.platformio.org/en/latest/history.html
$ pio package --help
Please wait while upgrading PlatformIO...
PlatformIO has been successfully upgraded to 4.4.0a7!


*********************************************************************************************************************************************************************************************************************
If you like PlatformIO, please:
- follow us on Twitter to stay up-to-date on the latest project news > https://twitter.com/PlatformIO_Org
- star it on GitHub > https://github.com/platformio/platformio
- try PlatformIO IDE for embedded development > https://platformio.org/platformio-ide
*********************************************************************************************************************************************************************************************************************

Usage: pio package [OPTIONS] COMMAND [ARGS]...

Options:
  -h, --help  Show this message and exit.

Commands:
  pack       Create a tarball from a package
  publish    Publish a package to the registry
  unpublish  Remove a pushed package from the registry