Vagrant cloud publish

61 views
Skip to first unread message

Spbb

unread,
Jul 9, 2020, 4:48:23 PM7/9/20
to Vagrant

Hi all,

vagrant cloud publish --help
Usage: vagrant cloud publish [options] organization/box-name version provider-name provider-file

Create and release a new Vagrant Box on Vagrant Cloud

Options:

        --box-version VERSION        Version of box to create
        --url URL                    Remote URL to download this provider
    -d, --description DESCRIPTION    Full description of box
        --version-description DESCRIPTION
                                     Description of the version to create
    -f, --force                      Disables confirmation to create or update box
    -p, --private                    Makes box private
    -r, --release                    Releases box
    -s DESCRIPTION,                  Short description of the box
        --short-description
    -u, --username USERNAME_OR_EMAIL Vagrant Cloud username or email address
    -c, --checksum CHECKSUM_VALUE    Checksum of the box for this provider. --checksum-type option is required.
    -C, --checksum-type TYPE         Type of checksum used (md5, sha1, sha256, sha384, sha512). --checksum option is required.
        --[no-]color                 Enable or disable color output
        --machine-readable           Enable machine readable output
    -v, --version                    Display Vagrant version
        --debug                      Enable debug output
        --timestamp                  Enable timestamps on log output
        --debug-timestamp            Enable debug output with timestamps
        --no-tty                     Enable non-interactive output
    -h, --help                       Print this help


How do I use the --no-tty option ?

sudo  vagrant cloud publish --no-tty  usernamel/fedora32 1.0.1 vmware fedora-32.vmware.box -d "A really cool box to download and use" --version-description "A cool version" --release --short-description "Download me!" 
I get:

 In a moment we will ask for your username and password to HashiCorp's
Vagrant Cloud. After authenticating, we will store an access token locally on
disk. Your login details will be transmitted over a secure connection, and
are never stored on disk locally.

If you do not have an Vagrant Cloud account, sign up at
Vagrant is attempting to interface with the UI in a way that requires
a TTY. Most actions in Vagrant that require a TTY have configuration
switches to disable this requirement. Please do that or run Vagrant
with TTY.

Howto not interacively upload ?






Brian Cain

unread,
Jul 9, 2020, 4:52:53 PM7/9/20
to vagra...@googlegroups.com
That prompt shows up when you haven't authenticated with Vagrant Cloud. You can do so by running 

vagrant cloud auth login
 
You can either pass your Vagrant Cloud token, or log in with your password. The following commands will then have the right authorization to make Vagrant Cloud requests on your behalf.







--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/c3c69a00-d373-4807-b2af-e9de25e7cf9bo%40googlegroups.com.


--
Brian Cain

Spbb

unread,
Jul 9, 2020, 5:07:31 PM7/9/20
to Vagrant


Op donderdag 9 juli 2020 22:52:53 UTC+2 schreef Brian Cain:
To unsubscribe from this group and stop receiving emails from it, send an email to vagra...@googlegroups.com.


--
Brian Cain

Well I used the token.
sudo vagrant cloud auth login -t mytoken

After that I still got a question on the screen.

 You are about to publish a box on Vagrant Cloud with the following options:
username/fedora32:   (v1.0.1) for provider 'vmware'
Automatic Release:     true
Box Description:       A really cool box to download and use
Box Short Description: Download me!
Version Description:   A cool version
Do you wish to continue? [y/N] N






 
 

Brian Cain

unread,
Jul 9, 2020, 5:10:29 PM7/9/20
to vagra...@googlegroups.com
vagrant cloud publish --force


Using the --force flag with publish will not confirm when you run the command.
 






 
 

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/hashicorp/vagrant/issues
Discuss: https://discuss.hashicorp.com/c/vagrant/24
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/126ba3c9-1d6c-43fc-9f58-bfc35127e709o%40googlegroups.com.


--
Brian Cain
Reply all
Reply to author
Forward
0 new messages