Comments (14)
I've been able to verify this, and I'm working out a fix for it right now.
from doctl.
I'm working on a solution for this, and in the mean time, you can create a file called .doctlcfg
in your home directory (not sure what this is on all versions of Windows) with the following contents:
access-token: <your do access token>
You can manually retrieve an access token at https://cloud.digitalocean.com/settings/api/tokens
from doctl.
As well, doesn't work with the form of .doctlcfg in the Github Readme.md, unless you put the expected comma in between the arguments, to make it proper JSON.
{
access-token: <yours>, <---- the crucial comma...
output: <json|text>
}
The location on Win10 and likely earlier is
c:\Users\yourusername_perhapsshortened\.doctlcfg
It does work just simply putting
access-token: <yours>
alone in the file, as you suggest above, but better if the full form is used, and the json is actually better for human reading I think.
from doctl.
The format isn't JSON, it's yaml
from doctl.
Hi Bryan -- yes, thanks; it came to me late in the night that it hadn't been JSON, but sensibly still needed its comma. The state of coders doing documentation, and of course syntax is seldom the large problem....
Anyway, so many scriptings, so little time, also. We switch gears when we have our head into a page, and deal in the context, don't we.
Kind regards,
Clive
[redacted later for the various iPadisms which had crept in...who needs ai, when you've got something with such a mind of it's own...!]
On Apr 3, 2016, at 11:09 AM, Bryan Liles [email protected] wrote:
The format isn't JSON, it's yaml
—
You are receiving this because you commented.
Reply to this email directly or view it on GitHub
from doctl.
Same as @theminecoder
doctl auth login
opens up the browser but the page reads unknown client
ICAW: Type %homepath% in start menu or echo %homepath%
in CMD
from doctl.
Seeing a problem when attempting to authenticate on Windows as well. It looks like it's not reading the configuration file?
I confirmed the location of user.Current().HomeDir as C:\Users\Ahro, with the correct file name being .doctlcfg, but it doesn't seem to be reading the settings saved in the file. As per this thread I used YAML syntax, as well as trying it with just the single key option.
I attached a debugger and didn't see it even attempt to open the file before beginning network operations.
from doctl.
@darkmorpher Those options are missing for ssh. Would you mind opening a new issue?
from doctl.
@Ahrotahntee I'm trying to replicate your findings. I do have it working with Windows 10.
from doctl.
I'm having trouble with this .doctlcfg
file. I have it in my home, but it isnt' recognizing it. However, I can pass the command-line flag to all commands and that works successfully:
C:\Users\Me > doctl -t <token> compute droplet-action shutdown <id>
ID Status Type Started At Completed At Resource ID Resource Type Region
<id> in-progress shutdown 2016-04-21 23:23:26 +0000 UTC <nil> <id 2> droplet nyc3
from doctl.
Ok, ignore my previous update. I mis-typed the cfg file. I had .dotctlcfg
not .doctlcfg
.
from doctl.
Unless I'm doing something wrong, I'm still getting this unknown client error, even with v1.1.0
from doctl.
@Phrown420 logging with the tool is a known issue on Windows. To proceed, generate an access token at https://cloud.digitalocean.com/settings/api/tokens. Then you have 3 options.
- Add an
access-token
entry to.doctlcfg
(this will be the easiest) - Use the access token argument when running
doctl
- Set
DIGITALOCEAN_ACCESS_TOKEN
environment variable to your token.
from doctl.
As I'm thinking right now doctl auth login
will go away in the next release. doctl
will introduce something like doctl auth init
, and that will require you to enter in your key.
from doctl.
Related Issues (20)
- doctl registry garbage-collection start --force moves the registry to RO mode but don't run garbage collector
- webgui xterm code HOT 1
- Serverless triggers are not being deployed HOT 4
- Why do we have to SSH into a droplet, and then install the Droplet Agent? Why can't you just pre-install it? HOT 3
- Adding taints has wrong syntax in DO docs HOT 2
- Access the link to download CA certificate for managed databases HOT 3
- Incremental builds don't work with --remote-build
- doctl kubernetes cluster node-pool create mycluster123 --auto-scale --min-nodes 0 --name test --size s-1vcpu-2gb --max-nodes 1 --count 0 says the node pool needs at least min 1 HOT 2
- Error: websocket: bad handshake for doctl apps logs <app id> -f --tail 200 HOT 3
- doctl --user-data help syntax wrong HOT 1
- doctl registry login fails with "error storing credentials" HOT 1
- feature: functions: create function triggers with doctl
- functions: attributes generated by quick start are undocumented
- doctl apps logs doesn't output JSON
- Functions node flag --env not working? HOT 2
- `doctl auth list --output json` produces text output HOT 3
- Serverless: Can not install Serverless in Linux x64 HOT 3
- Add ability to change connection pool size for connection pools HOT 5
- `doctl serverless install` should not require authentication
- Doctl registry repository list-tags failing with 404 HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from doctl.